home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: running.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Corel 10 Texture (image/corel10Texture)
| ext
| Unsupported |
1%
| dexvert
| Croteam texture file (image/croteamTextureFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CRLF line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| detectItEasy
| Format: plain text[CRLF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 63 68 61 70 74 65 72 | 7b 52 75 6e 6e 69 6e 67 |\chapter|{Running|
|00000010| 20 52 61 79 73 68 61 64 | 65 7d 0d 0a 0d 0a 7b 5c | Rayshad|e}....{\|
|00000020| 52 61 79 73 68 61 64 65 | 7d 0d 0a 63 61 6e 20 74 |Rayshade|}..can t|
|00000030| 61 6b 65 20 61 6e 79 77 | 68 65 72 65 20 66 72 6f |ake anyw|here fro|
|00000040| 6d 20 73 65 63 6f 6e 64 | 73 20 74 6f 20 77 65 65 |m second|s to wee|
|00000050| 6b 73 20 74 6f 20 72 65 | 6e 64 65 72 20 61 6e 20 |ks to re|nder an |
|00000060| 69 6d 61 67 65 2e 20 20 | 54 68 65 20 65 78 61 63 |image. |The exac|
|00000070| 74 0d 0a 74 69 6d 65 20 | 72 65 71 75 69 72 65 64 |t..time |required|
|00000080| 20 69 73 20 61 20 66 75 | 6e 63 74 69 6f 6e 20 6f | is a fu|nction o|
|00000090| 66 20 74 68 65 20 73 70 | 65 65 64 20 6f 66 20 74 |f the sp|eed of t|
|000000a0| 68 65 0d 0a 6d 61 63 68 | 69 6e 65 28 73 29 20 6f |he..mach|ine(s) o|
|000000b0| 6e 20 77 68 69 63 68 0d | 0a 79 6f 75 27 72 65 20 |n which.|.you're |
|000000c0| 77 6f 72 6b 69 6e 67 2c | 20 74 68 65 20 63 6f 6d |working,| the com|
|000000d0| 70 6c 65 78 69 74 79 20 | 6f 66 20 74 68 65 20 73 |plexity |of the s|
|000000e0| 63 65 6e 65 2c 20 61 6e | 64 20 68 6f 77 20 60 60 |cene, an|d how ``|
|000000f0| 67 6f 6f 64 27 27 20 79 | 6f 75 20 77 61 6e 74 0d |good'' y|ou want.|
|00000100| 0a 74 68 65 20 66 69 6e | 61 6c 20 69 6d 61 67 65 |.the fin|al image|
|00000110| 20 74 6f 20 62 65 2e 20 | 20 5c 66 6f 6f 74 6e 6f | to be. | \footno|
|00000120| 74 65 7b 41 70 70 65 6e | 64 69 78 20 44 20 64 65 |te{Appen|dix D de|
|00000130| 73 63 72 69 62 65 73 20 | 73 6f 6d 65 20 73 69 6d |scribes |some sim|
|00000140| 70 6c 65 0d 0a 77 61 79 | 73 20 74 6f 20 61 63 63 |ple..way|s to acc|
|00000150| 65 6c 65 72 61 74 65 20 | 74 68 65 20 72 65 6e 64 |elerate |the rend|
|00000160| 65 72 69 6e 67 20 70 72 | 6f 63 65 73 73 2e 7d 0d |ering pr|ocess.}.|
|00000170| 0a 0d 0a 43 72 65 61 74 | 69 6e 67 20 61 20 66 69 |...Creat|ing a fi|
|00000180| 6e 69 73 68 65 64 20 72 | 61 79 2d 74 72 61 63 65 |nished r|ay-trace|
|00000190| 64 20 69 6d 61 67 65 20 | 69 73 20 61 6e 20 69 74 |d image |is an it|
|000001a0| 65 72 61 74 69 76 65 20 | 70 72 6f 63 65 73 73 2e |erative |process.|
|000001b0| 20 20 55 73 75 61 6c 6c | 79 2c 20 6d 61 6e 79 0d | Usuall|y, many.|
|000001c0| 0a 74 65 73 74 20 72 65 | 6e 64 65 72 69 6e 67 73 |.test re|nderings|
|000001d0| 20 61 72 65 20 6d 61 64 | 65 20 61 74 20 6c 6f 77 | are mad|e at low|
|000001e0| 20 72 65 73 6f 6c 75 74 | 69 6f 6e 20 61 6e 64 20 | resolut|ion and |
|000001f0| 77 69 74 68 0d 0a 6e 6f | 6e 2d 65 73 73 65 6e 74 |with..no|n-essent|
|00000200| 69 61 6c 20 66 65 61 74 | 75 72 65 73 20 74 75 72 |ial feat|ures tur|
|00000210| 6e 65 64 20 6f 66 66 2e | 20 20 41 66 74 65 72 20 |ned off.| After |
|00000220| 65 61 63 68 20 74 65 73 | 74 20 69 6d 61 67 65 20 |each tes|t image |
|00000230| 69 73 20 63 72 65 61 74 | 65 64 2c 0d 0a 73 75 72 |is creat|ed,..sur|
|00000240| 66 61 63 65 20 64 65 66 | 69 6e 69 74 69 6f 6e 73 |face def|initions|
|00000250| 20 6d 69 67 68 74 20 62 | 65 20 6d 6f 64 69 66 69 | might b|e modifi|
|00000260| 65 64 2c 20 74 68 65 20 | 65 79 65 20 6f 72 20 6c |ed, the |eye or l|
|00000270| 6f 6f 6b 20 70 6f 73 69 | 74 69 6f 6e 73 20 6d 61 |ook posi|tions ma|
|00000280| 79 20 62 65 0d 0a 73 6c | 69 67 68 74 6c 79 20 63 |y be..sl|ightly c|
|00000290| 68 61 6e 67 65 64 2c 20 | 6f 72 20 74 68 65 20 69 |hanged, |or the i|
|000002a0| 6e 74 65 6e 73 69 74 79 | 20 6f 66 20 61 20 6c 69 |ntensity| of a li|
|000002b0| 67 68 74 20 73 6f 75 72 | 63 65 20 63 68 61 6e 67 |ght sour|ce chang|
|000002c0| 65 64 2e 0d 0a 0d 0a 54 | 68 69 73 20 63 68 61 70 |ed.....T|his chap|
|000002d0| 74 65 72 20 64 65 73 63 | 72 69 62 65 73 20 74 68 |ter desc|ribes th|
|000002e0| 65 20 62 61 73 69 63 20 | 6f 70 65 72 61 74 69 6f |e basic |operatio|
|000002f0| 6e 20 6f 66 20 7b 5c 72 | 61 79 73 68 61 64 65 7d |n of {\r|ayshade}|
|00000300| 20 61 6e 64 20 73 6f 6d | 65 20 6f 66 0d 0a 74 68 | and som|e of..th|
|00000310| 65 20 6f 70 74 69 6f 6e | 73 20 74 68 61 74 20 63 |e option|s that c|
|00000320| 6f 6e 74 72 6f 6c 20 74 | 68 61 74 20 6f 70 65 72 |ontrol t|hat oper|
|00000330| 61 74 69 6f 6e 2e 0d 0a | 53 65 74 74 69 6e 67 20 |ation...|Setting |
|00000340| 74 68 65 73 65 20 6f 70 | 74 69 6f 6e 73 20 70 72 |these op|tions pr|
|00000350| 6f 70 65 72 6c 79 20 63 | 61 6e 20 67 72 65 61 74 |operly c|an great|
|00000360| 6c 79 20 72 65 64 75 63 | 65 0d 0a 72 65 6e 64 65 |ly reduc|e..rende|
|00000370| 72 69 6e 67 20 74 69 6d | 65 2c 20 69 6d 70 72 6f |ring tim|e, impro|
|00000380| 76 65 20 74 68 65 20 71 | 75 61 6c 69 74 79 20 6f |ve the q|uality o|
|00000390| 66 20 79 6f 75 72 20 69 | 6d 61 67 65 73 2c 20 61 |f your i|mages, a|
|000003a0| 6e 64 20 6d 61 6b 65 20 | 79 6f 75 20 61 20 62 65 |nd make |you a be|
|000003b0| 74 74 65 72 0d 0a 70 65 | 72 73 6f 6e 2e 0d 0a 0d |tter..pe|rson....|
|000003c0| 0a 7b 5c 52 61 79 73 68 | 61 64 65 7d 20 75 73 75 |.{\Raysh|ade} usu|
|000003d0| 61 6c 6c 79 20 77 6f 72 | 6b 73 20 61 73 20 61 20 |ally wor|ks as a |
|000003e0| 66 69 6c 74 65 72 2c 20 | 72 65 61 64 69 6e 67 20 |filter, |reading |
|000003f0| 61 20 64 65 73 63 72 69 | 70 74 69 6f 6e 20 66 72 |a descri|ption fr|
|00000400| 6f 6d 0d 0a 74 68 65 20 | 73 74 61 6e 64 61 72 64 |om..the |standard|
|00000410| 20 69 6e 70 75 74 20 61 | 6e 64 20 77 72 69 74 69 | input a|nd writi|
|00000420| 6e 67 0d 0a 61 6e 20 69 | 6d 61 67 65 20 66 69 6c |ng..an i|mage fil|
|00000430| 65 20 74 6f 20 74 68 65 | 20 73 74 61 6e 64 61 72 |e to the| standar|
|00000440| 64 20 6f 75 74 70 75 74 | 2e 20 20 41 73 20 69 74 |d output|. As it|
|00000450| 20 69 73 20 77 6f 72 6b | 69 6e 67 2c 20 7b 5c 72 | is work|ing, {\r|
|00000460| 61 79 73 68 61 64 65 7d | 20 72 65 70 6f 72 74 73 |ayshade}| reports|
|00000470| 0d 0a 6f 6e 20 74 68 65 | 20 70 72 6f 67 72 65 73 |..on the| progres|
|00000480| 73 20 6f 66 20 74 68 65 | 20 72 65 6e 64 65 72 69 |s of the| renderi|
|00000490| 6e 67 20 62 79 20 77 72 | 69 74 69 6e 67 20 6d 65 |ng by wr|iting me|
|000004a0| 73 73 61 67 65 73 20 74 | 6f 20 74 68 65 20 73 74 |ssages t|o the st|
|000004b0| 61 6e 64 61 72 64 0d 0a | 65 72 72 6f 72 2e 0d 0a |andard..|error...|
|000004c0| 0d 0a 5c 73 65 63 74 69 | 6f 6e 7b 54 68 65 20 49 |..\secti|on{The I|
|000004d0| 6e 70 75 74 20 46 69 6c | 65 7d 0d 0a 0d 0a 54 68 |nput Fil|e}....Th|
|000004e0| 65 20 73 63 65 6e 65 20 | 64 65 73 63 72 69 70 74 |e scene |descript|
|000004f0| 69 6f 6e 20 72 65 61 64 | 20 62 79 20 7b 5c 72 61 |ion read| by {\ra|
|00000500| 79 73 68 61 64 65 7d 20 | 63 6f 6e 73 69 73 74 73 |yshade} |consists|
|00000510| 20 6f 66 20 61 20 6e 75 | 6d 62 65 72 20 6f 66 0d | of a nu|mber of.|
|00000520| 0a 6b 65 79 77 6f 72 64 | 73 2c 20 65 61 63 68 20 |.keyword|s, each |
|00000530| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 61 20 73 65 |followed| by a se|
|00000540| 74 20 6f 66 20 61 72 67 | 75 6d 65 6e 74 73 2e 20 |t of arg|uments. |
|00000550| 20 54 68 65 73 65 20 6b | 65 79 77 6f 72 64 73 20 | These k|eywords |
|00000560| 63 61 6e 0d 0a 62 65 20 | 74 68 6f 75 67 68 74 20 |can..be |thought |
|00000570| 6f 66 20 61 73 20 63 6f | 6d 6d 61 6e 64 73 20 74 |of as co|mmands t|
|00000580| 68 61 74 20 64 69 72 65 | 63 74 20 7b 5c 72 61 79 |hat dire|ct {\ray|
|00000590| 73 68 61 64 65 7d 20 74 | 6f 20 64 6f 20 76 61 72 |shade} t|o do var|
|000005a0| 69 6f 75 73 20 74 68 69 | 6e 67 73 2c 0d 0a 73 75 |ious thi|ngs,..su|
|000005b0| 63 68 20 61 73 20 63 72 | 65 61 74 65 20 6f 62 6a |ch as cr|eate obj|
|000005c0| 65 63 74 73 2c 20 73 65 | 74 20 74 68 65 20 65 79 |ects, se|t the ey|
|000005d0| 65 27 73 20 70 6f 73 69 | 74 69 6f 6e 2c 20 61 6e |e's posi|tion, an|
|000005e0| 64 20 63 68 61 6e 67 65 | 20 61 6e 20 6f 62 6a 65 |d change| an obje|
|000005f0| 63 74 27 73 0d 0a 61 70 | 70 65 61 72 61 6e 63 65 |ct's..ap|pearance|
|00000600| 2e 0d 0a 0d 0a 4d 61 6e | 79 20 6f 66 20 74 68 65 |.....Man|y of the|
|00000610| 20 6b 65 79 77 6f 72 64 | 73 20 68 61 76 65 20 72 | keyword|s have r|
|00000620| 65 6c 61 74 65 64 20 63 | 6f 6d 6d 61 6e 64 2d 6c |elated c|ommand-l|
|00000630| 69 6e 65 20 6f 70 74 69 | 6f 6e 73 20 66 6f 72 20 |ine opti|ons for |
|00000640| 74 75 72 6e 69 6e 67 0d | 0a 6f 6e 20 73 70 65 63 |turning.|.on spec|
|00000650| 69 61 6c 20 66 65 61 74 | 75 72 65 73 20 61 6e 64 |ial feat|ures and|
|00000660| 20 73 65 74 74 69 6e 67 | 20 76 61 6c 75 65 73 2e | setting| values.|
|00000670| 0d 0a 54 68 65 73 65 20 | 6f 70 74 69 6f 6e 73 20 |..These |options |
|00000680| 6f 76 65 72 72 69 64 65 | 20 74 68 65 20 76 61 6c |override| the val|
|00000690| 75 65 73 20 67 69 76 65 | 6e 20 69 6e 20 74 68 65 |ues give|n in the|
|000006a0| 20 69 6e 70 75 74 20 66 | 69 6c 65 2c 0d 0a 61 6e | input f|ile,..an|
|000006b0| 64 20 61 72 65 20 65 78 | 70 6c 61 69 6e 65 64 20 |d are ex|plained |
|000006c0| 69 6e 20 64 65 74 61 69 | 6c 20 69 6e 20 41 70 70 |in detai|l in App|
|000006d0| 65 6e 64 69 78 20 41 2e | 0d 0a 0d 0a 7b 5c 52 61 |endix A.|....{\Ra|
|000006e0| 79 73 68 61 64 65 7d 20 | 69 73 20 60 60 63 61 73 |yshade} |is ``cas|
|000006f0| 65 20 73 65 6e 73 69 74 | 69 76 65 2c 27 27 20 77 |e sensit|ive,'' w|
|00000700| 68 69 63 68 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |hich mea|ns that |
|00000710| 74 79 70 69 6e 67 0d 0a | 7b 5c 74 74 20 53 50 48 |typing..|{\tt SPH|
|00000720| 45 52 45 7d 20 6f 72 20 | 7b 5c 74 74 20 53 70 68 |ERE} or |{\tt Sph|
|00000730| 65 72 65 7d 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |ere} ins|tead of |
|00000740| 7b 5c 74 74 20 73 70 68 | 65 72 65 7d 20 77 6f 6e |{\tt sph|ere} won|
|00000750| 27 74 20 77 6f 72 6b 2e | 0d 0a 7b 5c 52 61 79 73 |'t work.|..{\Rays|
|00000760| 68 61 64 65 7d 20 6b 65 | 79 77 6f 72 64 73 20 61 |hade} ke|ywords a|
|00000770| 72 65 20 61 6c 6c 20 6c | 6f 77 65 72 2d 63 61 73 |re all l|ower-cas|
|00000780| 65 2e 20 20 4d 61 6e 79 | 20 70 65 6f 70 6c 65 20 |e. Many| people |
|00000790| 63 68 6f 6f 73 65 20 74 | 6f 0d 0a 63 61 70 69 74 |choose t|o..capit|
|000007a0| 61 6c 69 7a 65 20 74 68 | 65 20 66 69 72 73 74 20 |alize th|e first |
|000007b0| 6c 65 74 74 65 72 20 6f | 66 20 6e 61 6d 65 73 20 |letter o|f names |
|000007c0| 74 68 61 74 20 74 68 65 | 79 20 67 69 76 65 20 74 |that the|y give t|
|000007d0| 6f 20 6f 62 6a 65 63 74 | 73 0d 0a 6f 72 20 73 75 |o object|s..or su|
|000007e0| 72 66 61 63 65 73 20 69 | 6e 20 6f 72 64 65 72 20 |rfaces i|n order |
|000007f0| 74 6f 20 6d 61 6b 65 20 | 74 68 65 6e 20 60 60 73 |to make |then ``s|
|00000800| 74 61 6e 64 20 6f 75 74 | 27 27 20 69 6e 20 61 6e |tand out|'' in an|
|00000810| 20 69 6e 70 75 74 20 66 | 69 6c 65 2e 0d 0a 0d 0a | input f|ile.....|
|00000820| 4b 65 79 77 6f 72 64 73 | 2c 20 6e 75 6d 62 65 72 |Keywords|, number|
|00000830| 73 20 61 6e 64 20 73 74 | 72 69 6e 67 73 20 69 6e |s and st|rings in|
|00000840| 20 74 68 65 20 69 6e 70 | 75 74 20 66 69 6c 65 20 | the inp|ut file |
|00000850| 61 72 65 20 73 65 70 61 | 72 61 74 65 64 20 62 79 |are sepa|rated by|
|00000860| 20 73 70 61 63 65 73 2c | 0d 0a 74 61 62 73 2c 20 | spaces,|..tabs, |
|00000870| 6f 72 20 6e 65 77 20 6c | 69 6e 65 73 20 28 63 61 |or new l|ines (ca|
|00000880| 72 72 69 61 67 65 20 72 | 65 74 75 72 6e 73 29 2e |rriage r|eturns).|
|00000890| 20 20 54 68 65 73 65 20 | 60 60 77 68 69 74 65 73 | These |``whites|
|000008a0| 70 61 63 65 27 27 20 63 | 68 61 72 61 63 74 65 72 |pace'' c|haracter|
|000008b0| 73 0d 0a 61 72 65 20 68 | 61 6e 64 6c 65 64 20 69 |s..are h|andled i|
|000008c0| 64 65 6e 74 69 63 61 6c | 6c 79 20 62 79 20 7b 5c |dentical|ly by {\|
|000008d0| 72 61 79 73 68 61 64 65 | 7d 2c 20 77 68 69 63 68 |rayshade|}, which|
|000008e0| 20 6d 65 61 6e 73 20 74 | 68 61 74 20 79 6f 75 20 | means t|hat you |
|000008f0| 63 61 6e 20 73 65 70 61 | 72 61 74 65 0d 0a 6b 65 |can sepa|rate..ke|
|00000900| 79 77 6f 72 64 73 20 66 | 72 6f 6d 20 6b 65 79 77 |ywords f|rom keyw|
|00000910| 6f 72 64 73 2c 20 6b 65 | 79 20 77 6f 72 64 73 20 |ords, ke|y words |
|00000920| 66 72 6f 6d 20 61 72 67 | 75 6d 65 6e 74 73 2c 20 |from arg|uments, |
|00000930| 61 6e 64 20 61 72 67 75 | 6d 65 6e 74 73 20 66 72 |and argu|ments fr|
|00000940| 6f 6d 0d 0a 61 72 67 75 | 6d 65 6e 74 73 20 75 73 |om..argu|ments us|
|00000950| 69 6e 67 20 61 6e 79 20 | 63 6f 6d 62 69 6e 61 74 |ing any |combinat|
|00000960| 69 6f 6e 20 6f 66 20 77 | 68 69 74 65 73 70 61 63 |ion of w|hitespac|
|00000970| 65 20 63 68 61 72 61 63 | 74 65 72 73 20 74 68 61 |e charac|ters tha|
|00000980| 74 20 79 6f 75 20 63 68 | 6f 6f 73 65 2e 0d 0a 0d |t you ch|oose....|
|00000990| 0a 5c 62 65 67 69 6e 7b | 74 61 62 6c 65 7d 0d 0a |.\begin{|table}..|
|000009a0| 5c 63 65 6e 74 65 72 69 | 6e 67 0d 0a 5c 62 65 67 |\centeri|ng..\beg|
|000009b0| 69 6e 7b 74 61 62 75 6c | 61 72 7d 7b 7c 63 7c 63 |in{tabul|ar}{|c|c|
|000009c0| 7c 6c 7c 7d 5c 68 6c 69 | 6e 65 5c 68 6c 69 6e 65 ||l|}\hli|ne\hline|
|000009d0| 0d 0a 4f 70 65 72 61 74 | 6f 72 20 26 20 20 20 20 |..Operat|or & |
|000009e0| 55 73 65 20 20 20 20 26 | 20 4f 70 65 72 61 74 69 |Use &| Operati|
|000009f0| 6f 6e 20 5c 5c 20 5c 68 | 6c 69 6e 65 20 5c 68 6c |on \\ \h|line \hl|
|00000a00| 69 6e 65 0d 0a 5c 76 65 | 72 62 2b 5e 2b 20 26 20 |ine..\ve|rb+^+ & |
|00000a10| 20 5c 76 65 72 62 21 61 | 20 5e 20 62 21 20 20 26 | \verb!a| ^ b! &|
|00000a20| 20 45 78 70 6f 6e 65 6e | 74 69 61 74 69 6f 6e 20 | Exponen|tiation |
|00000a30| 5c 5c 20 20 5c 68 6c 69 | 6e 65 0d 0a 5c 76 65 72 |\\ \hli|ne..\ver|
|00000a40| 62 2b 2d 2b 20 26 20 20 | 5c 76 65 72 62 21 20 2d |b+-+ & |\verb! -|
|00000a50| 61 20 20 21 20 20 26 20 | 4e 65 67 61 74 69 6f 6e |a ! & |Negation|
|00000a60| 20 20 5c 5c 20 20 20 5c | 68 6c 69 6e 65 0d 0a 5c | \\ \|hline..\|
|00000a70| 76 65 72 62 2b 2a 2b 20 | 26 20 20 5c 76 65 72 62 |verb+*+ |& \verb|
|00000a80| 21 61 20 2a 20 62 21 20 | 20 26 20 4d 75 6c 74 69 |!a * b! | & Multi|
|00000a90| 70 6c 69 63 61 74 69 6f | 6e 20 20 5c 5c 20 20 5c |plicatio|n \\ \|
|00000aa0| 68 6c 69 6e 65 0d 0a 5c | 76 65 72 62 2b 2f 2b 20 |hline..\|verb+/+ |
|00000ab0| 26 20 20 5c 76 65 72 62 | 21 61 20 2f 20 62 21 20 |& \verb|!a / b! |
|00000ac0| 20 26 20 44 69 76 69 73 | 69 6f 6e 20 20 20 20 20 | & Divis|ion |
|00000ad0| 5c 5c 20 20 5c 68 6c 69 | 6e 65 0d 0a 5c 76 65 72 |\\ \hli|ne..\ver|
|00000ae0| 62 2b 25 2b 20 26 20 20 | 5c 76 65 72 62 21 61 20 |b+%+ & |\verb!a |
|00000af0| 25 20 62 21 20 20 26 20 | 52 65 6d 61 69 6e 64 65 |% b! & |Remainde|
|00000b00| 72 20 20 20 20 5c 5c 20 | 20 5c 68 6c 69 6e 65 0d |r \\ | \hline.|
|00000b10| 0a 5c 76 65 72 62 2d 2b | 2d 20 26 20 20 5c 76 65 |.\verb-+|- & \ve|
|00000b20| 72 62 21 61 20 2b 20 62 | 21 20 20 26 20 41 64 64 |rb!a + b|! & Add|
|00000b30| 69 74 69 6f 6e 20 20 20 | 20 20 5c 5c 20 5c 68 6c |ition | \\ \hl|
|00000b40| 69 6e 65 0d 0a 5c 76 65 | 72 62 2b 2d 2b 20 26 20 |ine..\ve|rb+-+ & |
|00000b50| 20 5c 76 65 72 62 21 61 | 20 2d 20 62 21 20 20 26 | \verb!a| - b! &|
|00000b60| 20 53 75 62 74 72 61 63 | 74 69 6f 6e 20 20 5c 5c | Subtrac|tion \\|
|00000b70| 20 5c 68 6c 69 6e 65 20 | 5c 68 6c 69 6e 65 0d 0a | \hline |\hline..|
|00000b80| 5c 65 6e 64 7b 74 61 62 | 75 6c 61 72 7d 0d 0a 5c |\end{tab|ular}..\|
|00000b90| 63 61 70 74 69 6f 6e 7b | 4f 70 65 72 61 74 6f 72 |caption{|Operator|
|00000ba0| 73 2c 20 69 6e 20 6f 72 | 64 65 72 20 6f 66 20 64 |s, in or|der of d|
|00000bb0| 65 63 72 65 61 73 69 6e | 67 20 70 72 65 63 65 64 |ecreasin|g preced|
|00000bc0| 65 6e 63 65 2e 7d 0d 0a | 5c 6c 61 62 65 6c 7b 74 |ence.}..|\label{t|
|00000bd0| 61 62 3a 6f 70 65 72 61 | 74 6f 72 73 7d 0d 0a 5c |ab:opera|tors}..\|
|00000be0| 65 6e 64 7b 74 61 62 6c | 65 7d 0d 0a 0d 0a 4e 75 |end{tabl|e}....Nu|
|00000bf0| 6d 62 65 72 73 20 6d 61 | 79 20 62 65 20 65 6e 74 |mbers ma|y be ent|
|00000c00| 65 72 65 64 20 64 69 72 | 65 63 74 6c 79 20 61 73 |ered dir|ectly as|
|00000c10| 20 72 65 61 6c 73 20 6f | 72 20 61 73 20 70 61 72 | reals o|r as par|
|00000c20| 65 6e 74 68 65 73 69 7a | 65 64 20 65 78 70 72 65 |enthesiz|ed expre|
|00000c30| 73 73 69 6f 6e 73 2e 0d | 0a 52 65 61 6c 73 20 6d |ssions..|.Reals m|
|00000c40| 61 79 20 62 65 20 77 72 | 69 74 74 65 6e 20 69 6e |ay be wr|itten in|
|00000c50| 20 65 78 70 6f 6e 65 6e | 74 69 61 6c 20 6e 6f 74 | exponen|tial not|
|00000c60| 61 74 69 6f 6e 20 69 66 | 20 79 6f 75 20 77 69 73 |ation if| you wis|
|00000c70| 68 2c 20 61 6e 64 0d 0a | 69 6e 74 65 67 65 72 73 |h, and..|integers|
|00000c80| 20 6d 61 79 20 62 65 20 | 77 72 69 74 74 65 6e 20 | may be |written |
|00000c90| 77 69 74 68 20 6f 72 20 | 77 69 74 68 6f 75 74 20 |with or |without |
|00000ca0| 61 20 74 72 61 69 6c 69 | 6e 67 20 64 65 63 69 6d |a traili|ng decim|
|00000cb0| 61 6c 20 70 6f 69 6e 74 | 2e 0d 0a 57 68 65 6e 20 |al point|...When |
|00000cc0| 61 6e 20 69 6e 74 65 67 | 65 72 20 76 61 6c 75 65 |an integ|er value|
|00000cd0| 20 69 73 20 63 61 6c 6c | 65 64 20 66 6f 72 20 61 | is call|ed for a|
|00000ce0| 6e 64 20 61 20 72 65 61 | 6c 20 69 73 20 67 69 76 |nd a rea|l is giv|
|00000cf0| 65 6e 2c 0d 0a 74 68 65 | 20 72 65 61 6c 20 76 61 |en,..the| real va|
|00000d00| 6c 75 65 20 69 73 20 74 | 72 75 6e 63 61 74 65 64 |lue is t|runcated|
|00000d10| 20 61 6e 64 20 74 68 65 | 20 72 65 73 75 6c 74 69 | and the| resulti|
|00000d20| 6e 67 20 69 6e 74 65 67 | 65 72 20 69 73 20 75 73 |ng integ|er is us|
|00000d30| 65 64 2e 0d 0a 54 61 62 | 6c 65 20 5c 72 65 66 7b |ed...Tab|le \ref{|
|00000d40| 74 61 62 3a 6f 70 65 72 | 61 74 6f 72 73 7d 20 6c |tab:oper|ators} l|
|00000d50| 69 73 74 73 20 74 68 65 | 20 61 76 61 69 6c 61 62 |ists the| availab|
|00000d60| 6c 65 20 6f 70 65 72 61 | 74 6f 72 73 0d 0a 61 76 |le opera|tors..av|
|00000d70| 61 69 6c 61 62 6c 65 20 | 66 6f 72 20 75 73 65 20 |ailable |for use |
|00000d80| 69 6e 20 65 78 70 72 65 | 73 73 69 6f 6e 73 2c 20 |in expre|ssions, |
|00000d90| 69 6e 20 6f 72 64 65 72 | 20 6f 66 20 64 65 63 72 |in order| of decr|
|00000da0| 65 61 73 69 6e 67 20 70 | 72 65 63 65 64 65 6e 63 |easing p|recedenc|
|00000db0| 65 2e 0d 0a 0d 0a 54 68 | 65 20 75 70 73 68 6f 74 |e.....Th|e upshot|
|00000dc0| 20 6f 66 20 61 6c 6c 20 | 74 68 69 73 20 69 73 20 | of all |this is |
|00000dd0| 74 68 61 74 20 74 68 65 | 20 73 74 72 69 6e 67 73 |that the| strings|
|00000de0| 0d 0a 7b 5c 74 74 20 34 | 32 7d 2c 20 7b 5c 74 74 |..{\tt 4|2}, {\tt|
|00000df0| 20 34 32 2e 7d 2c 0d 0a | 7b 5c 74 74 20 28 32 30 | 42.},..|{\tt (20|
|00000e00| 20 2b 20 32 32 29 7d 2c | 20 61 6e 64 20 7b 5c 74 | + 22)},| and {\t|
|00000e10| 74 20 28 37 5c 76 65 72 | 62 21 5e 21 32 20 2d 20 |t (7\ver|b!^!2 - |
|00000e20| 37 29 7d 20 6d 65 61 6e | 20 74 68 65 20 73 61 6d |7)} mean| the sam|
|00000e30| 65 20 74 68 69 6e 67 0d | 0a 74 6f 20 7b 5c 72 61 |e thing.|.to {\ra|
|00000e40| 79 73 68 61 64 65 7d 2e | 0d 0a 0d 0a 56 61 72 69 |yshade}.|....Vari|
|00000e50| 61 62 6c 65 73 20 6d 61 | 79 20 61 6c 73 6f 20 62 |ables ma|y also b|
|00000e60| 65 20 64 65 66 69 6e 65 | 64 20 61 6e 64 20 75 73 |e define|d and us|
|00000e70| 65 64 20 69 6e 20 65 78 | 70 72 65 73 73 69 6f 6e |ed in ex|pression|
|00000e80| 73 2e 20 20 53 65 76 65 | 72 61 6c 0d 0a 62 75 69 |s. Seve|ral..bui|
|00000e90| 6c 74 2d 69 6e 20 66 75 | 6e 63 74 69 6f 6e 73 20 |lt-in fu|nctions |
|00000ea0| 61 72 65 20 61 6c 73 6f | 20 70 72 6f 76 69 64 65 |are also| provide|
|00000eb0| 64 2e 20 20 53 65 65 20 | 41 70 70 65 6e 64 69 78 |d. See |Appendix|
|00000ec0| 20 42 20 66 6f 72 20 66 | 75 72 74 68 65 72 20 64 | B for f|urther d|
|00000ed0| 65 74 61 69 6c 73 2e 0d | 0a 0d 0a 7b 5c 52 61 79 |etails..|...{\Ray|
|00000ee0| 73 68 61 64 65 7d 20 77 | 69 6c 6c 20 61 75 74 6f |shade} w|ill auto|
|00000ef0| 6d 61 74 69 63 61 6c 6c | 79 20 72 75 6e 20 74 68 |maticall|y run th|
|00000f00| 65 20 69 6e 70 75 74 20 | 69 74 20 72 65 63 65 69 |e input |it recei|
|00000f10| 76 65 73 0d 0a 74 68 72 | 6f 75 67 68 20 74 68 65 |ves..thr|ough the|
|00000f20| 20 43 20 70 72 65 70 72 | 6f 63 65 73 73 6f 72 20 | C prepr|ocessor |
|00000f30| 69 66 20 69 74 20 69 73 | 20 61 76 61 69 6c 61 62 |if it is| availab|
|00000f40| 6c 65 2e 20 20 54 68 69 | 73 0d 0a 61 6c 6c 6f 77 |le. Thi|s..allow|
|00000f50| 73 20 79 6f 75 20 74 6f | 20 75 73 65 20 43 20 70 |s you to| use C p|
|00000f60| 72 65 70 72 6f 63 65 73 | 73 6f 72 20 64 69 72 65 |reproces|sor dire|
|00000f70| 63 74 69 76 65 73 2c 20 | 73 75 63 68 20 61 73 20 |ctives, |such as |
|00000f80| 7b 5c 74 74 20 5c 23 69 | 6e 63 6c 75 64 65 7d 2c |{\tt \#i|nclude},|
|00000f90| 0d 0a 7b 5c 74 74 20 5c | 23 64 65 66 69 6e 65 7d |..{\tt \|#define}|
|00000fa0| 2c 20 61 6e 64 20 7b 5c | 74 74 20 5c 23 69 66 64 |, and {\|tt \#ifd|
|00000fb0| 65 66 7d 20 77 68 65 6e | 20 64 65 73 69 67 6e 69 |ef} when| designi|
|00000fc0| 6e 67 20 79 6f 75 72 20 | 69 6e 70 75 74 20 66 69 |ng your |input fi|
|00000fd0| 6c 65 73 2e 0d 0a 0d 0a | 43 6f 6d 6d 65 6e 74 73 |les.....|Comments|
|00000fe0| 20 6d 61 79 20 62 65 20 | 69 6e 63 6c 75 64 65 64 | may be |included|
|00000ff0| 20 69 6e 20 7b 5c 72 61 | 79 73 68 61 64 65 7d 20 | in {\ra|yshade} |
|00001000| 69 6e 70 75 74 20 66 69 | 6c 65 73 20 62 79 20 65 |input fi|les by e|
|00001010| 6e 63 6c 6f 73 69 6e 67 | 0d 0a 74 65 78 74 20 62 |nclosing|..text b|
|00001020| 65 74 77 65 65 6e 20 74 | 68 65 20 73 74 72 69 6e |etween t|he strin|
|00001030| 67 73 20 5c 76 65 72 62 | 21 2f 2a 21 20 61 6e 64 |gs \verb|!/*! and|
|00001040| 20 5c 76 65 72 62 21 2a | 2f 21 2c 20 61 73 20 69 | \verb!*|/!, as i|
|00001050| 6e 20 74 68 65 20 43 0d | 0a 70 72 6f 67 72 61 6d |n the C.|.program|
|00001060| 6d 69 6e 67 0d 0a 6c 61 | 6e 67 75 61 67 65 2e 0d |ming..la|nguage..|
|00001070| 0a 0d 0a 5c 73 65 63 74 | 69 6f 6e 7b 49 6d 61 67 |...\sect|ion{Imag|
|00001080| 65 73 7d 0d 0a 0d 0a 54 | 68 65 20 65 6e 64 20 72 |es}....T|he end r|
|00001090| 65 73 75 6c 74 20 6f 66 | 20 72 75 6e 6e 69 6e 67 |esult of| running|
|000010a0| 20 7b 5c 72 61 79 73 68 | 61 64 65 7d 20 69 73 20 | {\raysh|ade} is |
|000010b0| 61 6e 20 69 6d 61 67 65 | 20 66 69 6c 65 2e 20 20 |an image| file. |
|000010c0| 44 65 70 65 6e 64 69 6e | 67 20 75 70 6f 6e 0d 0a |Dependin|g upon..|
|000010d0| 68 6f 77 20 69 74 20 77 | 61 73 20 69 6e 73 74 61 |how it w|as insta|
|000010e0| 6c 6c 65 64 2c 20 7b 5c | 72 61 79 73 68 61 64 65 |lled, {\|rayshade|
|000010f0| 7d 20 77 72 69 74 65 73 | 20 69 6d 61 67 65 73 20 |} writes| images |
|00001100| 69 6e 20 65 69 74 68 65 | 72 20 74 68 65 20 55 74 |in eithe|r the Ut|
|00001110| 61 68 20 52 61 73 74 65 | 72 0d 0a 7b 5c 65 6d 20 |ah Raste|r..{\em |
|00001120| 52 4c 45 7d 20 66 6f 72 | 6d 61 74 20 6f 72 20 61 |RLE} for|mat or a|
|00001130| 20 67 65 6e 65 72 69 63 | 20 62 75 74 20 65 61 73 | generic| but eas|
|00001140| 69 6c 79 2d 6d 61 6e 69 | 70 75 6c 61 74 65 64 20 |ily-mani|pulated |
|00001150| 7b 5c 65 6d 20 6d 74 76 | 7d 20 66 6f 72 6d 61 74 |{\em mtv|} format|
|00001160| 0d 0a 75 73 65 64 20 62 | 79 20 4d 61 72 6b 20 56 |..used b|y Mark V|
|00001170| 61 6e 64 65 57 65 74 74 | 65 72 69 6e 67 20 69 6e |andeWett|ering in|
|00001180| 20 68 69 73 20 7b 5c 65 | 6d 20 6d 74 76 7d 20 72 | his {\e|m mtv} r|
|00001190| 61 79 20 74 72 61 63 65 | 72 2e 20 20 54 68 65 20 |ay trace|r. The |
|000011a0| 7b 5c 65 6d 20 6d 74 76 | 7d 0d 0a 66 6f 72 6d 61 |{\em mtv|}..forma|
|000011b0| 74 20 63 6f 6e 73 69 73 | 74 73 20 6f 66 20 61 20 |t consis|ts of a |
|000011c0| 68 65 61 64 65 72 20 67 | 69 76 69 6e 67 20 74 68 |header g|iving th|
|000011d0| 65 20 72 65 73 6f 6c 75 | 74 69 6f 6e 20 6f 66 20 |e resolu|tion of |
|000011e0| 74 68 65 20 69 6d 61 67 | 65 20 66 6f 6c 6c 6f 77 |the imag|e follow|
|000011f0| 65 64 0d 0a 62 79 20 69 | 6e 74 65 72 6c 65 61 76 |ed..by i|nterleav|
|00001200| 65 64 20 72 65 64 2d 67 | 72 65 65 6e 2d 62 6c 75 |ed red-g|reen-blu|
|00001210| 65 20 76 61 6c 75 65 73 | 20 66 6f 72 20 65 61 63 |e values| for eac|
|00001220| 68 20 70 69 78 65 6c 2e | 20 20 54 68 65 20 7b 5c |h pixel.| The {\|
|00001230| 65 6d 20 52 4c 45 7d 20 | 66 6f 72 6d 61 74 0d 0a |em RLE} |format..|
|00001240| 73 75 70 70 6f 72 74 73 | 20 61 6e 20 61 72 62 69 |supports| an arbi|
|00001250| 74 72 61 72 79 20 6e 75 | 6d 62 65 72 20 6f 66 20 |trary nu|mber of |
|00001260| 63 6f 6c 6f 72 20 63 68 | 61 6e 6e 65 6c 73 2c 0d |color ch|annels,.|
|00001270| 0a 61 6e 20 61 6c 70 68 | 61 20 63 68 61 6e 6e 65 |.an alph|a channe|
|00001280| 6c 2c 20 63 6f 6d 6d 65 | 6e 74 73 2c 20 61 20 68 |l, comme|nts, a h|
|00001290| 69 73 74 6f 72 79 20 66 | 69 65 6c 64 2c 20 61 6e |istory f|ield, an|
|000012a0| 64 20 74 68 65 20 61 62 | 69 6c 69 74 79 0d 0a 74 |d the ab|ility..t|
|000012b0| 6f 20 74 72 65 61 74 20 | 69 6d 61 67 65 73 20 61 |o treat |images a|
|000012c0| 73 20 77 69 6e 64 6f 77 | 73 20 69 6e 74 6f 20 61 |s window|s into a|
|000012d0| 20 6c 61 72 67 65 72 20 | 69 6d 61 67 65 2e 20 20 | larger |image. |
|000012e0| 41 73 20 61 20 72 65 73 | 75 6c 74 20 6f 66 20 74 |As a res|ult of t|
|000012f0| 68 69 73 0d 0a 66 6c 65 | 78 69 62 69 6c 69 74 79 |his..fle|xibility|
|00001300| 2c 20 61 20 6e 75 6d 62 | 65 72 20 6f 66 20 7b 5c |, a numb|er of {\|
|00001310| 72 61 79 73 68 61 64 65 | 7d 27 73 20 66 65 61 74 |rayshade|}'s feat|
|00001320| 75 72 65 73 0d 0a 61 72 | 65 20 6e 6f 74 0d 0a 73 |ures..ar|e not..s|
|00001330| 75 70 70 6f 72 74 65 64 | 20 69 66 20 74 68 65 20 |upported| if the |
|00001340| 7b 5c 65 6d 20 6d 74 76 | 7d 20 66 6f 72 6d 61 74 |{\em mtv|} format|
|00001350| 20 69 73 20 62 65 69 6e | 67 20 75 73 65 64 2e 20 | is bein|g used. |
|00001360| 59 6f 75 20 61 72 65 20 | 74 68 75 73 20 73 74 72 |You are |thus str|
|00001370| 6f 6e 67 6c 79 0d 0a 65 | 6e 63 6f 75 72 61 67 65 |ongly..e|ncourage|
|00001380| 64 20 74 6f 20 6f 62 74 | 61 69 6e 20 61 20 63 6f |d to obt|ain a co|
|00001390| 70 79 20 6f 66 20 74 68 | 65 20 55 74 61 68 20 52 |py of th|e Utah R|
|000013a0| 61 73 74 65 72 20 54 6f | 6f 6c 6b 69 74 2e 0d 0a |aster To|olkit...|
|000013b0| 0d 0a 49 66 20 74 68 65 | 20 7b 5c 65 6d 20 6d 74 |..If the| {\em mt|
|000013c0| 76 7d 0d 0a 66 6f 72 6d | 61 74 20 69 73 20 75 73 |v}..form|at is us|
|000013d0| 65 64 2c 20 74 68 65 20 | 69 6d 61 67 65 20 77 69 |ed, the |image wi|
|000013e0| 6c 6c 20 28 61 6e 64 20 | 6d 75 73 74 29 20 63 6f |ll (and |must) co|
|000013f0| 6e 73 69 73 74 20 6f 66 | 20 74 68 72 65 65 20 65 |nsist of| three e|
|00001400| 69 67 68 74 2d 62 69 74 | 0d 0a 63 6f 6c 6f 72 20 |ight-bit|..color |
|00001410| 63 68 61 6e 6e 65 6c 73 | 2e 0d 0a 49 66 20 74 68 |channels|...If th|
|00001420| 65 20 7b 5c 65 6d 20 52 | 4c 45 7d 20 66 6f 72 6d |e {\em R|LE} form|
|00001430| 61 74 20 69 73 20 75 73 | 65 64 2c 20 74 68 65 20 |at is us|ed, the |
|00001440| 69 6d 61 67 65 20 66 69 | 6c 65 20 63 6f 6e 73 69 |image fi|le consi|
|00001450| 73 74 73 20 6f 66 20 74 | 68 72 65 65 0d 0a 65 69 |sts of t|hree..ei|
|00001460| 67 68 74 2d 62 69 74 20 | 63 6f 6c 6f 72 20 63 68 |ght-bit |color ch|
|00001470| 61 6e 6e 65 6c 73 20 70 | 6c 75 73 20 61 6e 20 65 |annels p|lus an e|
|00001480| 69 67 68 74 2d 62 69 74 | 20 61 6c 70 68 61 20 63 |ight-bit| alpha c|
|00001490| 68 61 6e 6e 65 6c 2e 20 | 20 7b 5c 52 61 79 73 68 |hannel. | {\Raysh|
|000014a0| 61 64 65 7d 0d 0a 61 6c | 73 6f 20 64 6f 63 75 6d |ade}..al|so docum|
|000014b0| 65 6e 74 73 20 69 6e 20 | 74 68 65 20 7b 5c 65 6d |ents in |the {\em|
|000014c0| 20 52 4c 45 7d 20 68 65 | 61 64 65 72 20 74 68 65 | RLE} he|ader the|
|000014d0| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 61 6e | command| line an|
|000014e0| 64 20 7b 5c 65 6d 20 67 | 61 6d 6d 61 7d 0d 0a 76 |d {\em g|amma}..v|
|000014f0| 61 6c 75 65 20 75 73 65 | 64 20 69 6e 20 63 72 65 |alue use|d in cre|
|00001500| 61 74 69 6e 67 20 74 68 | 65 20 69 6d 61 67 65 2e |ating th|e image.|
|00001510| 0d 0a 0d 0a 49 66 20 6d | 6f 72 65 20 74 68 61 6e |....If m|ore than|
|00001520| 20 6f 6e 65 20 66 72 61 | 6d 65 20 69 73 20 72 65 | one fra|me is re|
|00001530| 6e 64 65 72 65 64 2c 20 | 74 68 65 20 72 65 73 75 |ndered, |the resu|
|00001540| 6c 74 69 6e 67 20 69 6d | 61 67 65 73 20 61 72 65 |lting im|ages are|
|00001550| 20 61 70 70 65 6e 64 65 | 64 0d 0a 69 6e 20 74 75 | appende|d..in tu|
|00001560| 72 6e 0d 0a 74 6f 20 74 | 68 65 20 69 6d 61 67 65 |rn..to t|he image|
|00001570| 20 66 69 6c 65 2e 20 20 | 54 68 65 20 76 61 72 69 | file. |The vari|
|00001580| 6f 75 73 20 75 74 69 6c | 69 74 69 65 73 20 70 72 |ous util|ities pr|
|00001590| 6f 76 69 64 65 64 20 62 | 79 20 74 68 65 0d 0a 55 |ovided b|y the..U|
|000015a0| 74 61 68 20 52 61 73 74 | 65 72 20 54 6f 6f 6c 6b |tah Rast|er Toolk|
|000015b0| 69 74 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 74 |it can b|e used t|
|000015c0| 6f 20 6d 61 6e 69 70 75 | 6c 61 74 65 20 74 68 65 |o manipu|late the|
|000015d0| 20 72 65 73 75 6c 74 69 | 6e 67 20 60 60 6d 6f 76 | resulti|ng ``mov|
|000015e0| 69 65 27 27 0d 0a 66 69 | 6c 65 73 2e 0d 0a 49 66 |ie''..fi|les...If|
|000015f0| 20 74 68 65 20 54 6f 6f | 6c 6b 69 74 20 69 73 20 | the Too|lkit is |
|00001600| 6e 6f 74 20 62 65 69 6e | 67 20 75 73 65 64 2c 20 |not bein|g used, |
|00001610| 79 6f 75 20 77 69 6c 6c | 20 70 72 6f 62 61 62 6c |you will| probabl|
|00001620| 79 20 6e 65 65 64 20 74 | 6f 20 77 72 69 74 65 0d |y need t|o write.|
|00001630| 0a 75 74 69 6c 69 74 79 | 20 70 72 6f 67 72 61 6d |.utility| program|
|00001640| 73 20 74 6f 20 68 61 6e | 64 6c 65 20 74 68 65 20 |s to han|dle the |
|00001650| 64 65 63 69 64 65 64 6c | 79 20 6e 6f 6e 2d 73 74 |decidedl|y non-st|
|00001660| 61 6e 64 61 72 64 20 6d | 75 6c 74 69 2d 69 6d 61 |andard m|ulti-ima|
|00001670| 67 65 20 7b 5c 65 6d 20 | 6d 74 76 7d 0d 0a 66 6f |ge {\em |mtv}..fo|
|00001680| 72 6d 61 74 20 66 69 6c | 65 73 2e 0d 0a 0d 0a 42 |rmat fil|es.....B|
|00001690| 79 20 64 65 66 61 75 6c | 74 2c 20 7b 5c 72 61 79 |y defaul|t, {\ray|
|000016a0| 73 68 61 64 65 7d 20 77 | 72 69 74 65 73 20 74 68 |shade} w|rites th|
|000016b0| 65 20 63 6f 6d 70 75 74 | 65 64 20 69 6d 61 67 65 |e comput|ed image|
|000016c0| 20 74 6f 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | to the |standard|
|000016d0| 20 6f 75 74 70 75 74 2e | 0d 0a 54 68 65 20 69 6d | output.|..The im|
|000016e0| 61 67 65 20 66 69 6c 65 | 20 6d 61 79 20 62 65 20 |age file| may be |
|000016f0| 77 72 69 74 74 65 6e 20 | 74 6f 20 61 20 66 69 6c |written |to a fil|
|00001700| 65 20 69 6e 73 74 65 61 | 64 20 62 79 20 73 70 65 |e instea|d by spe|
|00001710| 63 69 66 79 69 6e 67 20 | 61 20 66 69 6c 65 20 6e |cifying |a file n|
|00001720| 61 6d 65 0d 0a 69 6e 20 | 74 68 65 20 69 6e 70 75 |ame..in |the inpu|
|00001730| 74 20 73 74 72 65 61 6d | 2e 0d 0a 0d 0a 5c 62 65 |t stream|.....\be|
|00001740| 67 69 6e 7b 64 65 66 6b | 65 79 7d 7b 6f 75 74 66 |gin{defk|ey}{outf|
|00001750| 69 6c 65 7d 7b 7b 5c 65 | 6d 20 66 69 6c 65 6e 61 |ile}{{\e|m filena|
|00001760| 6d 65 7d 7d 0d 0a 09 57 | 72 69 74 65 20 74 68 65 |me}}...W|rite the|
|00001770| 20 63 6f 6d 70 75 74 65 | 64 20 69 6d 61 67 65 20 | compute|d image |
|00001780| 74 6f 20 74 68 65 20 6e | 61 6d 65 64 20 66 69 6c |to the n|amed fil|
|00001790| 65 2e 0d 0a 5c 65 6e 64 | 7b 64 65 66 6b 65 79 7d |e...\end|{defkey}|
|000017a0| 0d 0a 54 68 65 20 6f 75 | 74 70 75 74 20 66 69 6c |..The ou|tput fil|
|000017b0| 65 20 6e 61 6d 65 20 6d | 61 79 20 61 6c 73 6f 20 |e name m|ay also |
|000017c0| 62 65 20 73 70 65 63 69 | 66 69 65 64 20 6f 6e 20 |be speci|fied on |
|000017d0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |the comm|and line|
|000017e0| 20 62 79 0d 0a 75 73 69 | 6e 67 20 74 68 65 20 7b | by..usi|ng the {|
|000017f0| 5c 74 74 20 2d 4f 7d 20 | 6f 70 74 69 6f 6e 2e 0d |\tt -O} |option..|
|00001800| 0a 0d 0a 54 68 65 20 73 | 69 7a 65 20 6f 66 20 74 |...The s|ize of t|
|00001810| 68 65 20 6f 75 74 70 75 | 74 20 69 6d 61 67 65 20 |he outpu|t image |
|00001820| 69 73 20 6d 65 61 73 75 | 72 65 64 20 69 6e 20 70 |is measu|red in p|
|00001830| 69 78 65 6c 73 2e 20 20 | 54 68 65 20 7b 5c 65 6d |ixels. |The {\em|
|00001840| 20 78 7d 20 73 69 7a 65 | 0d 0a 69 73 20 74 68 65 | x} size|..is the|
|00001850| 20 6e 75 6d 62 65 72 20 | 6f 66 20 70 69 78 65 6c | number |of pixel|
|00001860| 73 20 6c 65 66 74 2d 74 | 6f 2d 72 69 67 68 74 2c |s left-t|o-right,|
|00001870| 20 77 68 69 6c 65 20 74 | 68 65 20 7b 5c 65 6d 20 | while t|he {\em |
|00001880| 79 7d 20 73 69 7a 65 20 | 69 73 0d 0a 74 68 65 20 |y} size |is..the |
|00001890| 6e 75 6d 62 65 72 20 6f | 66 20 70 69 78 65 6c 73 |number o|f pixels|
|000018a0| 20 62 6f 74 74 6f 6d 2d | 74 6f 2d 74 6f 70 2e 0d | bottom-|to-top..|
|000018b0| 0a 0d 0a 5c 62 65 67 69 | 6e 7b 64 65 66 6b 65 79 |...\begi|n{defkey|
|000018c0| 7d 7b 73 63 72 65 65 6e | 7d 7b 7b 5c 65 6d 20 78 |}{screen|}{{\em x|
|000018d0| 73 69 7a 65 20 79 73 69 | 7a 65 7d 7d 0d 0a 09 55 |size ysi|ze}}...U|
|000018e0| 73 65 20 61 20 73 63 72 | 65 65 6e 20 7b 5c 65 6d |se a scr|een {\em|
|000018f0| 20 78 73 69 7a 65 7d 20 | 70 69 78 65 6c 73 20 77 | xsize} |pixels w|
|00001900| 69 64 65 20 62 79 20 7b | 5c 65 6d 20 79 73 69 7a |ide by {|\em ysiz|
|00001910| 65 7d 20 70 69 78 65 6c | 73 20 68 69 67 68 2e 0d |e} pixel|s high..|
|00001920| 0a 5c 65 6e 64 7b 64 65 | 66 6b 65 79 7d 0d 0a 54 |.\end{de|fkey}..T|
|00001930| 68 65 20 73 63 72 65 65 | 6e 20 73 69 7a 65 20 6d |he scree|n size m|
|00001940| 61 79 20 61 6c 73 6f 20 | 62 65 20 73 65 74 20 6f |ay also |be set o|
|00001950| 6e 20 74 68 65 20 63 6f | 6d 6d 61 6e 64 20 6c 69 |n the co|mmand li|
|00001960| 6e 65 20 74 68 72 6f 75 | 67 68 0d 0a 74 68 65 20 |ne throu|gh..the |
|00001970| 7b 5c 74 74 20 2d 52 7d | 20 6f 70 74 69 6f 6e 2e |{\tt -R}| option.|
|00001980| 0d 0a 54 68 65 20 64 65 | 66 61 75 6c 74 0d 0a 73 |..The de|fault..s|
|00001990| 63 72 65 65 6e 20 73 69 | 7a 65 20 69 73 20 35 31 |creen si|ze is 51|
|000019a0| 32 20 62 79 20 35 31 32 | 20 70 69 78 65 6c 73 2e |2 by 512| pixels.|
|000019b0| 0d 0a 0d 0a 57 68 65 6e | 20 72 65 6e 64 65 72 69 |....When| renderi|
|000019c0| 6e 67 20 61 6e 20 69 6d | 61 67 65 2c 20 69 74 20 |ng an im|age, it |
|000019d0| 69 73 20 6f 66 74 65 6e | 20 61 64 76 61 6e 74 61 |is often| advanta|
|000019e0| 67 65 6f 75 73 20 74 6f | 20 73 70 6c 69 74 20 74 |geous to| split t|
|000019f0| 68 65 20 69 6d 61 67 65 | 0d 0a 69 6e 74 6f 20 61 |he image|..into a|
|00001a00| 20 6e 75 6d 62 65 72 20 | 6f 66 20 64 69 73 6a 6f | number |of disjo|
|00001a10| 69 6e 74 20 77 69 6e 64 | 6f 77 73 2c 20 65 61 63 |int wind|ows, eac|
|00001a20| 68 20 6f 66 20 77 68 69 | 63 68 20 69 73 20 72 65 |h of whi|ch is re|
|00001a30| 6e 64 65 72 65 64 0d 0a | 6f 6e 20 61 20 64 69 66 |ndered..|on a dif|
|00001a40| 66 65 72 65 6e 74 20 6d | 61 63 68 69 6e 65 2e 20 |ferent m|achine. |
|00001a50| 20 4f 6e 65 20 74 68 65 | 6e 20 63 6f 6d 62 69 6e | One the|n combin|
|00001a60| 65 73 20 74 68 65 20 69 | 6d 61 67 65 73 20 63 6f |es the i|mages co|
|00001a70| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 74 6f 0d 0a |rrespond|ing to..|
|00001a80| 74 68 65 20 77 69 6e 64 | 6f 77 73 20 69 6e 74 6f |the wind|ows into|
|00001a90| 20 61 20 66 69 6e 61 6c | 20 69 6d 61 67 65 2e 0d | a final| image..|
|00001aa0| 0a 0d 0a 5c 62 65 67 69 | 6e 7b 64 65 66 6b 65 79 |...\begi|n{defkey|
|00001ab0| 7d 7b 77 69 6e 64 6f 77 | 7d 7b 7b 5c 65 6d 20 6d |}{window|}{{\em m|
|00001ac0| 69 6e 78 20 6d 61 78 78 | 20 6d 69 6e 79 20 6d 61 |inx maxx| miny ma|
|00001ad0| 78 79 7d 7d 0d 0a 09 52 | 65 6e 64 65 72 20 74 68 |xy}}...R|ender th|
|00001ae0| 65 20 69 6d 61 67 65 20 | 69 6e 20 74 68 65 20 67 |e image |in the g|
|00001af0| 69 76 65 6e 20 77 69 6e | 64 6f 77 2e 0d 0a 5c 65 |iven win|dow...\e|
|00001b00| 6e 64 7b 64 65 66 6b 65 | 79 7d 0d 0a 54 68 65 20 |nd{defke|y}..The |
|00001b10| 77 69 6e 64 6f 77 20 6d | 75 73 74 20 62 65 20 70 |window m|ust be p|
|00001b20| 72 6f 70 65 72 6c 79 0d | 0a 63 6f 6e 74 61 69 6e |roperly.|.contain|
|00001b30| 65 64 20 77 69 74 68 69 | 6e 20 74 68 65 20 73 63 |ed withi|n the sc|
|00001b40| 72 65 65 6e 2c 20 69 2e | 65 2e 2c 20 7b 5c 65 6d |reen, i.|e., {\em|
|00001b50| 20 6d 69 6e 78 7d 20 61 | 6e 64 20 7b 5c 65 6d 20 | minx} a|nd {\em |
|00001b60| 6d 69 6e 79 7d 20 6d 75 | 73 74 0d 0a 62 65 20 67 |miny} mu|st..be g|
|00001b70| 72 65 61 74 65 72 20 74 | 68 61 6e 20 6f 72 20 65 |reater t|han or e|
|00001b80| 71 75 61 6c 20 74 6f 20 | 7a 65 72 6f 2c 20 77 68 |qual to |zero, wh|
|00001b90| 69 6c 65 20 7b 5c 65 6d | 20 6d 61 78 78 7d 20 61 |ile {\em| maxx} a|
|00001ba0| 6e 64 0d 0a 7b 5c 65 6d | 20 6d 61 78 79 7d 20 6d |nd..{\em| maxy} m|
|00001bb0| 75 73 74 20 62 65 20 6c | 65 73 73 20 74 68 61 6e |ust be l|ess than|
|00001bc0| 20 7b 5c 65 6d 20 78 73 | 69 7a 65 7d 20 61 6e 64 | {\em xs|ize} and|
|00001bd0| 20 7b 5c 65 6d 20 79 73 | 69 7a 65 7d 2c 20 72 65 | {\em ys|ize}, re|
|00001be0| 73 70 65 63 74 69 76 65 | 6c 79 2e 0d 0a 54 68 65 |spective|ly...The|
|00001bf0| 20 55 74 61 68 20 52 61 | 73 74 65 72 20 74 6f 6f | Utah Ra|ster too|
|00001c00| 6c 0d 0a 7b 5c 65 6d 20 | 72 6c 65 63 6f 6d 70 5c |l..{\em |rlecomp\|
|00001c10| 2f 7d 20 69 73 20 75 73 | 65 66 75 6c 20 66 6f 72 |/} is us|eful for|
|00001c20| 20 72 65 63 6f 6e 73 74 | 72 75 63 74 69 6e 67 20 | reconst|ructing |
|00001c30| 74 68 65 20 66 75 6c 6c | 20 69 6d 61 67 65 20 66 |the full| image f|
|00001c40| 72 6f 6d 0d 0a 73 75 62 | 2d 69 6d 61 67 65 73 2e |rom..sub|-images.|
|00001c50| 0d 0a 42 79 20 64 65 66 | 61 75 6c 74 2c 20 74 68 |..By def|ault, th|
|00001c60| 65 20 77 69 6e 64 6f 77 | 0d 0a 69 73 20 65 71 75 |e window|..is equ|
|00001c70| 69 76 61 6c 65 6e 74 20 | 74 6f 20 74 68 65 20 65 |ivalent |to the e|
|00001c80| 6e 74 69 72 65 20 73 63 | 72 65 65 6e 2e 0d 0a 0d |ntire sc|reen....|
|00001c90| 0a 49 74 20 69 73 20 61 | 6c 73 6f 20 63 6f 6e 76 |.It is a|lso conv|
|00001ca0| 65 6e 69 65 6e 74 20 74 | 6f 20 62 65 20 61 62 6c |enient t|o be abl|
|00001cb0| 65 20 74 6f 20 72 65 6e | 64 65 72 20 61 20 73 6d |e to ren|der a sm|
|00001cc0| 61 6c 6c 20 70 6f 72 74 | 69 6f 6e 0d 0a 6f 66 20 |all port|ion..of |
|00001cd0| 74 68 65 20 77 69 6e 64 | 6f 77 20 62 79 20 73 70 |the wind|ow by sp|
|00001ce0| 65 63 69 66 79 69 6e 67 | 20 61 20 73 75 62 72 65 |ecifying| a subre|
|00001cf0| 67 69 6f 6e 20 75 73 69 | 6e 67 20 6e 6f 72 6d 61 |gion usi|ng norma|
|00001d00| 6c 69 7a 65 64 20 63 6f | 6f 72 64 69 6e 61 74 65 |lized co|ordinate|
|00001d10| 73 2e 0d 0a 0d 0a 5c 62 | 65 67 69 6e 7b 64 65 66 |s.....\b|egin{def|
|00001d20| 6b 65 79 7d 7b 63 72 6f | 70 7d 7b 7b 5c 65 6d 20 |key}{cro|p}{{\em |
|00001d30| 6c 65 66 74 20 72 69 67 | 68 74 20 62 6f 74 74 6f |left rig|ht botto|
|00001d40| 6d 20 74 6f 70 7d 7d 0d | 0a 09 43 72 6f 70 20 74 |m top}}.|..Crop t|
|00001d50| 68 65 20 72 65 6e 64 65 | 72 69 6e 67 20 77 69 6e |he rende|ring win|
|00001d60| 64 6f 77 2e 0d 0a 5c 65 | 6e 64 7b 64 65 66 6b 65 |dow...\e|nd{defke|
|00001d70| 79 7d 0d 0a 54 68 65 20 | 72 65 6e 64 65 72 69 6e |y}..The |renderin|
|00001d80| 67 20 77 69 6e 64 6f 77 | 20 69 73 20 63 72 6f 70 |g window| is crop|
|00001d90| 70 65 64 20 62 79 20 72 | 65 6e 64 65 72 69 6e 67 |ped by r|endering|
|00001da0| 20 74 68 65 20 73 63 72 | 65 65 6e 0d 0a 61 72 65 | the scr|een..are|
|00001db0| 61 20 74 68 61 74 20 66 | 61 6c 6c 73 20 77 69 74 |a that f|alls wit|
|00001dc0| 68 69 6e 20 24 6d 69 6e | 78 20 2b 20 6c 65 66 74 |hin $min|x + left|
|00001dd0| 28 6d 61 78 78 20 2d 20 | 6d 69 6e 78 29 24 20 61 |(maxx - |minx)$ a|
|00001de0| 6e 64 0d 0a 24 6d 69 6e | 78 20 2b 20 72 69 67 68 |nd..$min|x + righ|
|00001df0| 74 28 6d 61 78 78 20 2d | 20 6d 69 6e 78 29 24 20 |t(maxx -| minx)$ |
|00001e00| 69 6e 20 74 68 65 20 24 | 58 24 20 64 69 72 65 63 |in the $|X$ direc|
|00001e10| 74 69 6f 6e 2c 20 61 6e | 64 20 73 69 6d 69 6c 61 |tion, an|d simila|
|00001e20| 72 6c 79 0d 0a 66 6f 72 | 20 74 68 65 20 24 59 24 |rly..for| the $Y$|
|00001e30| 20 64 69 72 65 63 74 69 | 6f 6e 2e 0d 0a 7b 5c 65 | directi|on...{\e|
|00001e40| 6d 20 4c 65 66 74 7d 20 | 61 6e 64 20 7b 5c 65 6d |m Left} |and {\em|
|00001e50| 20 62 6f 74 74 6f 6d 7d | 20 6d 75 73 74 20 62 65 | bottom}| must be|
|00001e60| 20 67 72 65 61 74 65 72 | 20 74 68 61 6e 20 6f 72 | greater| than or|
|00001e70| 20 65 71 75 61 6c 20 74 | 6f 20 7a 65 72 6f 2e 0d | equal t|o zero..|
|00001e80| 0a 7b 5c 65 6d 20 52 69 | 67 68 74 7d 20 61 6e 64 |.{\em Ri|ght} and|
|00001e90| 20 7b 5c 65 6d 20 74 6f | 70 7d 20 6d 75 73 74 20 | {\em to|p} must |
|00001ea0| 62 65 20 6c 65 73 73 20 | 74 68 61 6e 20 6f 72 20 |be less |than or |
|00001eb0| 65 71 75 61 6c 20 74 6f | 20 6f 6e 65 2e 0d 0a 49 |equal to| one...I|
|00001ec0| 66 20 7b 5c 65 6d 20 6c | 65 66 74 7d 20 69 73 20 |f {\em l|eft} is |
|00001ed0| 67 72 65 61 74 65 72 20 | 74 68 61 6e 20 7b 5c 65 |greater |than {\e|
|00001ee0| 6d 20 72 69 67 68 74 7d | 2c 20 74 68 65 20 74 77 |m right}|, the tw|
|00001ef0| 6f 20 76 61 6c 75 65 73 | 20 61 72 65 0d 0a 73 77 |o values| are..sw|
|00001f00| 61 70 70 65 64 2c 20 61 | 6e 64 20 73 69 6d 69 6c |apped, a|nd simil|
|00001f10| 61 72 6c 79 20 66 6f 72 | 20 7b 5c 65 6d 20 62 6f |arly for| {\em bo|
|00001f20| 74 74 6f 6d 7d 20 61 6e | 64 20 7b 5c 65 6d 20 74 |ttom} an|d {\em t|
|00001f30| 6f 70 7d 2e 0d 0a 0d 0a | 7b 5c 65 6d 20 47 61 6d |op}.....|{\em Gam|
|00001f40| 6d 61 20 63 6f 72 72 65 | 63 74 69 6f 6e 7d 20 6d |ma corre|ction} m|
|00001f50| 61 79 20 61 6c 73 6f 20 | 62 65 20 61 70 70 6c 69 |ay also |be appli|
|00001f60| 65 64 20 74 6f 20 74 68 | 65 20 74 68 72 65 65 20 |ed to th|e three |
|00001f70| 6f 75 74 70 75 74 20 63 | 6f 6c 6f 72 0d 0a 63 68 |output c|olor..ch|
|00001f80| 61 6e 6e 65 6c 73 2e 20 | 20 53 65 65 20 41 70 70 |annels. | See App|
|00001f90| 65 6e 64 69 78 20 41 20 | 66 6f 72 20 6d 6f 72 65 |endix A |for more|
|00001fa0| 20 64 65 74 61 69 6c 73 | 2e 0d 0a 0d 0a 5c 73 65 | details|.....\se|
|00001fb0| 63 74 69 6f 6e 7b 53 74 | 61 74 69 73 74 69 63 73 |ction{St|atistics|
|00001fc0| 20 52 65 70 6f 72 74 69 | 6e 67 7d 0d 0a 0d 0a 41 | Reporti|ng}....A|
|00001fd0| 73 20 69 74 20 69 73 20 | 77 6f 72 6b 69 6e 67 2c |s it is |working,|
|00001fe0| 20 7b 5c 72 61 79 73 68 | 61 64 65 7d 20 69 6e 66 | {\raysh|ade} inf|
|00001ff0| 6f 72 6d 73 20 79 6f 75 | 20 6f 66 20 69 74 73 20 |orms you| of its |
|00002000| 70 72 6f 67 72 65 73 73 | 20 62 79 20 77 72 69 74 |progress| by writ|
|00002010| 69 6e 67 0d 0a 6d 65 73 | 73 61 67 65 73 20 74 6f |ing..mes|sages to|
|00002020| 20 61 20 60 60 72 65 70 | 6f 72 74 20 66 69 6c 65 | a ``rep|ort file|
|00002030| 27 27 2e 20 20 42 79 20 | 64 65 66 61 75 6c 74 2c |''. By |default,|
|00002040| 20 74 68 65 20 72 65 70 | 6f 72 74 20 66 69 6c 65 | the rep|ort file|
|00002050| 20 69 73 20 74 68 65 0d | 0a 73 74 61 6e 64 61 72 | is the.|.standar|
|00002060| 64 20 65 72 72 6f 72 2e | 20 20 54 68 65 20 72 65 |d error.| The re|
|00002070| 70 6f 72 74 20 69 74 73 | 65 6c 66 20 63 6f 6e 73 |port its|elf cons|
|00002080| 69 73 74 73 20 6f 66 20 | 61 20 6e 75 6d 62 65 72 |ists of |a number|
|00002090| 20 6f 66 0d 0a 70 72 6f | 67 72 65 73 73 20 72 65 | of..pro|gress re|
|000020a0| 70 6f 72 74 20 6c 69 6e | 65 73 20 63 6f 6e 73 69 |port lin|es consi|
|000020b0| 73 74 69 6e 67 20 6f 66 | 20 74 68 65 20 6e 75 6d |sting of| the num|
|000020c0| 62 65 72 20 6f 66 20 65 | 79 65 20 72 61 79 73 20 |ber of e|ye rays |
|000020d0| 74 72 61 63 65 64 2c 0d | 0a 74 68 65 20 74 6f 74 |traced,.|.the tot|
|000020e0| 61 6c 20 65 6c 61 70 73 | 65 64 20 74 69 6d 65 2c |al elaps|ed time,|
|000020f0| 20 61 6e 64 20 74 68 65 | 20 65 6c 61 70 73 65 64 | and the| elapsed|
|00002100| 20 74 69 6d 65 20 73 69 | 6e 63 65 20 74 68 65 20 | time si|nce the |
|00002110| 6c 61 73 74 20 70 72 6f | 67 72 65 73 73 20 72 65 |last pro|gress re|
|00002120| 70 6f 72 74 2e 0d 0a 54 | 68 65 20 65 6e 64 20 6f |port...T|he end o|
|00002130| 66 20 74 68 65 20 72 65 | 70 6f 72 74 20 63 6f 6e |f the re|port con|
|00002140| 74 61 69 6e 73 20 64 65 | 74 61 69 6c 65 64 20 73 |tains de|tailed s|
|00002150| 74 61 74 69 73 74 69 63 | 73 20 61 62 6f 75 74 20 |tatistic|s about |
|00002160| 69 6e 74 65 72 73 65 63 | 74 69 6f 6e 0d 0a 74 65 |intersec|tion..te|
|00002170| 73 74 73 20 70 65 72 66 | 6f 72 6d 65 64 2c 20 74 |sts perf|ormed, t|
|00002180| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 72 61 79 |he numbe|r of ray|
|00002190| 73 20 74 72 61 63 65 64 | 2c 20 61 6e 64 20 74 68 |s traced|, and th|
|000021a0| 65 20 6c 69 6b 65 2e 0d | 0a 0d 0a 5c 62 65 67 69 |e like..|...\begi|
|000021b0| 6e 7b 64 65 66 6b 65 79 | 7d 7b 72 65 70 6f 72 74 |n{defkey|}{report|
|000021c0| 7d 7b 5b 7b 5c 74 74 20 | 76 65 72 62 6f 73 65 7d |}{[{\tt |verbose}|
|000021d0| 5d 20 5b 7b 5c 74 74 20 | 71 75 69 65 74 7d 5d 20 |] [{\tt |quiet}] |
|000021e0| 5b 7b 5c 65 6d 20 66 72 | 65 71 7d 5d 20 5b 7b 5c |[{\em fr|eq}] [{\|
|000021f0| 65 6d 20 66 69 6c 65 7d | 5d 7d 0d 0a 09 53 70 65 |em file}|]}...Spe|
|00002200| 63 69 66 79 20 74 68 65 | 20 6b 69 6e 64 20 6f 66 |cify the| kind of|
|00002210| 0d 0a 09 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 69 |...infor|mation i|
|00002220| 6e 63 6c 75 64 65 64 20 | 69 6e 20 74 68 65 20 72 |ncluded |in the r|
|00002230| 65 70 6f 72 74 20 61 6e | 64 20 74 6f 20 77 68 69 |eport an|d to whi|
|00002240| 63 68 0d 0a 09 66 69 6c | 65 20 69 74 20 73 68 6f |ch...fil|e it sho|
|00002250| 75 6c 64 20 62 65 20 77 | 72 69 74 74 65 6e 2e 0d |uld be w|ritten..|
|00002260| 0a 09 49 66 20 7b 5c 74 | 74 20 76 65 72 62 6f 73 |..If {\t|t verbos|
|00002270| 65 7d 20 69 73 20 73 70 | 65 63 69 66 69 65 64 2c |e} is sp|ecified,|
|00002280| 20 74 68 65 0d 0a 09 72 | 65 70 6f 72 74 20 77 69 | the...r|eport wi|
|00002290| 6c 6c 20 61 6c 73 6f 20 | 69 6e 63 6c 75 64 65 20 |ll also |include |
|000022a0| 61 20 6c 69 73 74 69 6e | 67 20 6f 66 20 74 68 65 |a listin|g of the|
|000022b0| 20 6f 70 74 69 6f 6e 73 | 20 73 65 6c 65 63 74 65 | options| selecte|
|000022c0| 64 2c 0d 0a 09 74 68 65 | 20 0d 0a 09 62 6f 75 6e |d,...the| ...boun|
|000022d0| 64 69 6e 67 20 76 6f 6c | 75 6d 65 73 20 6f 66 20 |ding vol|umes of |
|000022e0| 65 61 63 68 20 61 67 67 | 72 65 67 61 74 65 2c 0d |each agg|regate,.|
|000022f0| 0a 09 61 6e 64 20 74 68 | 65 20 74 6f 74 61 6c 20 |..and th|e total |
|00002300| 6e 75 6d 62 65 72 20 6f | 66 20 70 72 69 6d 69 74 |number o|f primit|
|00002310| 69 76 65 73 20 69 6e 20 | 65 61 63 68 20 61 67 67 |ives in |each agg|
|00002320| 72 65 67 61 74 65 2e 0d | 0a 09 7b 5c 74 74 20 71 |regate..|..{\tt q|
|00002330| 75 69 65 74 7d 20 63 61 | 75 73 65 73 20 77 61 72 |uiet} ca|uses war|
|00002340| 6e 69 6e 67 0d 0a 09 6d | 65 73 73 61 67 65 73 20 |ning...m|essages |
|00002350| 74 6f 20 62 65 20 73 75 | 70 70 72 65 73 73 65 64 |to be su|ppressed|
|00002360| 2e 20 20 7b 5c 65 6d 20 | 66 72 65 71 7d 20 73 70 |. {\em |freq} sp|
|00002370| 65 63 69 66 69 65 73 20 | 74 68 65 20 66 72 65 71 |ecifies |the freq|
|00002380| 75 65 6e 63 79 2c 0d 0a | 09 69 6e 20 73 63 61 6e |uency,..|.in scan|
|00002390| 6c 69 6e 65 73 20 72 65 | 6e 64 65 72 65 64 2c 20 |lines re|ndered, |
|000023a0| 74 68 61 74 20 70 72 6f | 67 72 65 73 73 20 72 65 |that pro|gress re|
|000023b0| 70 6f 72 74 73 20 61 72 | 65 20 6d 61 64 65 2e 0d |ports ar|e made..|
|000023c0| 0a 09 49 66 20 67 69 76 | 65 6e 2c 20 7b 5c 65 6d |..If giv|en, {\em|
|000023d0| 20 66 69 6c 65 7d 20 6e | 61 6d 65 73 20 61 20 66 | file} n|ames a f|
|000023e0| 69 6c 65 20 74 6f 20 77 | 68 69 63 68 20 74 68 65 |ile to w|hich the|
|000023f0| 20 72 65 70 6f 72 74 0d | 0a 09 77 69 6c 6c 20 62 | report.|..will b|
|00002400| 65 20 77 72 69 74 74 65 | 6e 2e 0d 0a 5c 65 6e 64 |e writte|n...\end|
|00002410| 7b 64 65 66 6b 65 79 7d | 0d 0a 42 79 20 64 65 66 |{defkey}|..By def|
|00002420| 61 75 6c 74 2c 20 61 20 | 6e 6f 6e 2d 76 65 72 62 |ault, a |non-verb|
|00002430| 6f 73 65 2c 20 6e 6f 6e | 2d 71 75 69 65 74 20 72 |ose, non|-quiet r|
|00002440| 65 70 6f 72 74 20 69 73 | 20 0d 0a 77 72 69 74 74 |eport is| ..writt|
|00002450| 65 6e 20 74 6f 20 74 68 | 65 20 73 74 61 6e 64 61 |en to th|e standa|
|00002460| 72 64 20 65 72 72 6f 72 | 20 6f 6e 63 65 20 65 76 |rd error| once ev|
|00002470| 65 72 79 20 31 30 20 6c | 69 6e 65 73 2e 0d 0a 54 |ery 10 l|ines...T|
|00002480| 68 65 20 7b 5c 74 74 20 | 2d 56 7d 20 6f 70 74 69 |he {\tt |-V} opti|
|00002490| 6f 6e 20 6d 61 79 20 61 | 6c 73 6f 20 62 65 20 75 |on may a|lso be u|
|000024a0| 73 65 64 20 74 6f 20 64 | 69 72 65 63 74 20 74 68 |sed to d|irect th|
|000024b0| 65 20 72 65 70 6f 72 74 | 20 74 6f 20 61 20 6e 61 |e report| to a na|
|000024c0| 6d 65 64 20 66 69 6c 65 | 2e 0d 0a 0d 0a 5c 73 65 |med file|.....\se|
|000024d0| 63 74 69 6f 6e 7b 41 6e | 74 69 61 6c 69 61 73 69 |ction{An|tialiasi|
|000024e0| 6e 67 7d 0d 0a 0d 0a 47 | 69 76 65 6e 20 61 20 73 |ng}....G|iven a s|
|000024f0| 63 72 65 65 6e 20 6f 66 | 20 61 20 66 69 78 65 64 |creen of| a fixed|
|00002500| 20 73 69 7a 65 2c 20 63 | 72 65 61 74 69 6e 67 20 | size, c|reating |
|00002510| 61 6e 20 69 6d 61 67 65 | 20 69 73 20 61 63 63 6f |an image| is acco|
|00002520| 6d 70 6c 69 73 68 65 64 | 20 62 79 0d 0a 73 61 6d |mplished| by..sam|
|00002530| 70 6c 69 6e 67 20 65 61 | 63 68 20 70 69 78 65 6c |pling ea|ch pixel|
|00002540| 20 6f 6e 65 20 6f 72 20 | 6d 6f 72 65 20 74 69 6d | one or |more tim|
|00002550| 65 73 20 69 6e 20 6f 72 | 64 65 72 20 74 6f 20 64 |es in or|der to d|
|00002560| 65 74 65 72 6d 69 6e 65 | 20 77 68 61 74 20 63 61 |etermine| what ca|
|00002570| 6e 0d 0a 62 65 20 73 65 | 65 6e 20 60 60 74 68 72 |n..be se|en ``thr|
|00002580| 6f 75 67 68 27 27 20 74 | 68 61 74 20 70 69 78 65 |ough'' t|hat pixe|
|00002590| 6c 20 62 79 20 74 68 65 | 20 63 61 6d 65 72 61 2e |l by the| camera.|
|000025a0| 20 20 41 20 70 69 78 65 | 6c 20 74 68 75 73 20 63 | A pixe|l thus c|
|000025b0| 6f 76 65 72 73 0d 0a 61 | 20 73 71 75 61 72 65 20 |overs..a| square |
|000025c0| 61 72 65 61 20 6f 66 20 | 74 68 65 20 69 6d 61 67 |area of |the imag|
|000025d0| 65 20 70 6c 61 6e 65 2c | 20 6e 6f 74 20 6a 75 73 |e plane,| not jus|
|000025e0| 74 20 61 20 73 69 6e 67 | 6c 65 20 70 6f 69 6e 74 |t a sing|le point|
|000025f0| 2e 0d 0a 0d 0a 49 66 20 | 61 20 70 69 78 65 6c 20 |.....If |a pixel |
|00002600| 69 73 20 6e 6f 74 20 73 | 61 6d 70 6c 65 64 20 61 |is not s|ampled a|
|00002610| 74 20 74 68 65 20 70 72 | 6f 70 65 72 20 72 61 74 |t the pr|oper rat|
|00002620| 65 2c 20 61 6c 69 61 73 | 69 6e 67 20 77 69 6c 6c |e, alias|ing will|
|00002630| 20 72 65 73 75 6c 74 2e | 0d 0a 41 6c 69 61 73 69 | result.|..Aliasi|
|00002640| 6e 67 20 75 73 75 61 6c | 6c 79 20 61 70 70 65 61 |ng usual|ly appea|
|00002650| 72 73 20 61 73 20 60 60 | 6a 61 67 67 69 65 73 27 |rs as ``|jaggies'|
|00002660| 27 20 6f 72 20 60 60 73 | 74 61 69 72 20 73 74 65 |' or ``s|tair ste|
|00002670| 70 73 27 27 20 69 6e 20 | 74 68 65 20 69 6d 61 67 |ps'' in |the imag|
|00002680| 65 2e 0d 0a 49 6e 20 6f | 72 64 65 72 20 74 6f 20 |e...In o|rder to |
|00002690| 72 65 64 75 63 65 20 74 | 68 65 73 65 20 61 6e 64 |reduce t|hese and|
|000026a0| 20 6f 74 68 65 72 20 61 | 72 74 69 66 61 63 74 73 | other a|rtifacts|
|000026b0| 2c 20 7b 5c 72 61 79 73 | 68 61 64 65 7d 20 70 72 |, {\rays|hade} pr|
|000026c0| 6f 76 69 64 65 73 0d 0a | 61 6e 20 61 64 61 70 74 |ovides..|an adapt|
|000026d0| 69 76 65 20 6a 69 74 74 | 65 72 65 64 20 61 6e 74 |ive jitt|ered ant|
|000026e0| 69 61 6c 69 61 73 69 6e | 67 20 73 63 68 65 6d 65 |ialiasin|g scheme|
|000026f0| 20 74 68 61 74 20 61 74 | 74 65 6d 70 74 73 20 74 | that at|tempts t|
|00002700| 6f 20 64 65 74 65 63 74 | 20 77 68 65 72 65 0d 0a |o detect| where..|
|00002710| 69 6e 63 72 65 61 73 65 | 64 20 73 61 6d 70 6c 69 |increase|d sampli|
|00002720| 6e 67 20 72 61 74 65 73 | 20 61 72 65 20 6e 65 65 |ng rates| are nee|
|00002730| 64 65 64 2e 0d 0a 49 6e | 20 6a 69 74 74 65 72 65 |ded...In| jittere|
|00002740| 64 20 73 61 6d 70 6c 69 | 6e 67 2c 20 74 68 65 20 |d sampli|ng, the |
|00002750| 6c 6f 63 61 74 69 6f 6e | 20 61 74 20 77 68 69 63 |location| at whic|
|00002760| 68 20 61 20 73 61 6d 70 | 6c 65 20 69 73 20 74 61 |h a samp|le is ta|
|00002770| 6b 65 6e 20 69 73 0d 0a | 70 65 72 74 75 72 62 65 |ken is..|perturbe|
|00002780| 64 20 62 79 20 61 20 72 | 61 6e 64 6f 6d 20 61 6d |d by a r|andom am|
|00002790| 6f 75 6e 74 2e 20 20 54 | 68 69 73 20 70 65 72 74 |ount. T|his pert|
|000027a0| 75 72 62 61 74 69 6f 6e | 20 72 65 64 75 63 65 73 |urbation| reduces|
|000027b0| 20 61 6c 69 61 73 69 6e | 67 0d 0a 62 75 74 20 61 | aliasin|g..but a|
|000027c0| 64 64 73 20 6e 6f 69 73 | 65 20 74 6f 20 74 68 65 |dds nois|e to the|
|000027d0| 20 69 6d 61 67 65 2e 20 | 20 41 70 70 65 6e 64 69 | image. | Appendi|
|000027e0| 78 20 42 20 64 65 73 63 | 72 69 62 65 73 20 68 6f |x B desc|ribes ho|
|000027f0| 77 20 6a 69 74 74 65 72 | 65 64 0d 0a 74 69 6d 65 |w jitter|ed..time|
|00002800| 20 73 61 6d 70 6c 69 6e | 67 20 69 73 20 69 6d 70 | samplin|g is imp|
|00002810| 6c 65 6d 65 6e 74 65 64 | 20 69 6e 20 7b 5c 72 61 |lemented| in {\ra|
|00002820| 79 73 68 61 64 65 7d 2e | 0d 0a 0d 0a 54 68 65 20 |yshade}.|....The |
|00002830| 61 64 61 70 74 69 76 65 | 20 73 61 6d 70 6c 69 6e |adaptive| samplin|
|00002840| 67 20 73 63 68 65 6d 65 | 20 69 6d 70 6c 65 6d 65 |g scheme| impleme|
|00002850| 6e 74 65 64 20 69 6e 20 | 7b 5c 72 61 79 73 68 61 |nted in |{\raysha|
|00002860| 64 65 7d 20 62 65 67 69 | 6e 73 0d 0a 62 79 20 73 |de} begi|ns..by s|
|00002870| 61 6d 70 6c 69 6e 67 20 | 65 61 63 68 20 70 69 78 |ampling |each pix|
|00002880| 65 6c 20 6f 6e 20 74 68 | 65 20 63 75 72 72 65 6e |el on th|e curren|
|00002890| 74 20 73 63 61 6e 6c 69 | 6e 65 20 6f 6e 63 65 2e |t scanli|ne once.|
|000028a0| 0d 0a 46 6f 72 20 65 61 | 63 68 20 70 69 78 65 6c |..For ea|ch pixel|
|000028b0| 20 6f 6e 20 74 68 65 20 | 73 63 61 6e 6c 69 6e 65 | on the |scanline|
|000028c0| 2c 20 74 68 65 20 63 6f | 6e 74 72 61 73 74 20 62 |, the co|ntrast b|
|000028d0| 65 74 77 65 65 6e 20 69 | 74 20 61 6e 64 20 69 74 |etween i|t and it|
|000028e0| 73 0d 0a 66 6f 75 72 20 | 69 6d 6d 65 64 69 61 74 |s..four |immediat|
|000028f0| 65 20 6e 65 69 67 68 62 | 6f 72 73 20 69 73 20 63 |e neighb|ors is c|
|00002900| 6f 6d 70 75 74 65 64 2e | 20 20 49 66 20 74 68 69 |omputed.| If thi|
|00002910| 73 20 63 6f 6e 74 72 61 | 73 74 20 69 73 20 67 72 |s contra|st is gr|
|00002920| 65 61 74 65 72 0d 0a 74 | 68 61 6e 20 61 20 75 73 |eater..t|han a us|
|00002930| 65 72 2d 73 70 65 63 69 | 66 69 65 64 20 6d 61 78 |er-speci|fied max|
|00002940| 69 6d 75 6d 20 69 6e 20 | 61 6e 79 20 63 6f 6c 6f |imum in |any colo|
|00002950| 72 20 63 68 61 6e 6e 65 | 6c 2c 0d 0a 74 68 65 20 |r channe|l,..the |
|00002960| 70 69 78 65 6c 20 61 6e | 64 20 69 74 73 0d 0a 6e |pixel an|d its..n|
|00002970| 65 69 67 68 62 6f 72 73 | 20 61 72 65 20 61 6c 6c |eighbors| are all|
|00002980| 20 73 75 70 65 72 73 61 | 6d 70 6c 65 64 20 62 79 | supersa|mpled by|
|00002990| 20 66 69 72 69 6e 67 20 | 61 6e 20 61 64 64 69 74 | firing |an addit|
|000029a0| 69 6f 6e 61 6c 0d 0a 7b | 24 6e 75 6d 73 61 6d 70 |ional..{|$numsamp|
|000029b0| 6c 65 73 5e 32 20 2d 31 | 24 7d 20 72 61 79 73 20 |les^2 -1|$} rays |
|000029c0| 74 68 72 6f 75 67 68 20 | 74 68 6f 73 65 20 70 69 |through |those pi|
|000029d0| 78 65 6c 73 20 74 68 61 | 74 20 68 61 76 65 20 6e |xels tha|t have n|
|000029e0| 6f 74 20 61 6c 72 65 61 | 64 79 20 62 65 65 6e 0d |ot alrea|dy been.|
|000029f0| 0a 73 75 70 65 72 73 61 | 6d 70 6c 65 64 2e 20 20 |.supersa|mpled. |
|00002a00| 54 68 69 73 20 70 72 6f | 63 65 73 73 20 69 73 20 |This pro|cess is |
|00002a10| 72 65 70 65 61 74 65 64 | 20 66 6f 72 20 74 68 65 |repeated| for the|
|00002a20| 20 63 75 72 72 65 6e 74 | 20 73 63 61 6e 6c 69 6e | current| scanlin|
|00002a30| 65 0d 0a 75 6e 74 69 6c | 20 61 20 70 61 73 73 20 |e..until| a pass |
|00002a40| 69 73 20 6d 61 64 65 20 | 77 69 74 68 6f 75 74 20 |is made |without |
|00002a50| 61 6e 79 0d 0a 70 69 78 | 65 6c 20 62 65 69 6e 67 |any..pix|el being|
|00002a60| 20 73 75 70 65 72 73 61 | 6d 70 6c 65 64 2e 0d 0a | supersa|mpled...|
|00002a70| 0d 0a 5c 62 65 67 69 6e | 7b 64 65 66 6b 65 79 7d |..\begin|{defkey}|
|00002a80| 7b 63 6f 6e 74 72 61 73 | 74 7d 7b 7b 5c 65 6d 20 |{contras|t}{{\em |
|00002a90| 72 65 64 63 6f 6e 74 20 | 67 72 65 65 6e 63 6f 6e |redcont |greencon|
|00002aa0| 74 20 62 6c 75 65 63 6f | 6e 74 7d 7d 0d 0a 09 53 |t blueco|nt}}...S|
|00002ab0| 65 74 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 61 |et the m|aximum a|
|00002ac0| 6c 6c 6f 77 65 64 20 63 | 6f 6e 74 72 61 73 74 20 |llowed c|ontrast |
|00002ad0| 62 65 74 77 65 65 6e 20 | 66 6f 75 72 20 63 6f 6c |between |four col|
|00002ae0| 6f 72 0d 0a 09 73 61 6d | 70 6c 65 73 20 77 68 65 |or...sam|ples whe|
|00002af0| 6e 20 61 64 61 70 74 69 | 76 65 20 73 75 70 65 72 |n adapti|ve super|
|00002b00| 73 61 6d 70 6c 69 6e 67 | 20 69 73 20 75 73 65 64 |sampling| is used|
|00002b10| 2e 0d 0a 09 54 68 65 20 | 63 6f 6e 74 72 61 73 74 |....The |contrast|
|00002b20| 20 74 65 73 74 20 69 73 | 20 61 70 70 6c 69 65 64 | test is| applied|
|00002b30| 20 74 6f 20 65 61 63 68 | 20 63 6f 6c 6f 72 0d 0a | to each| color..|
|00002b40| 09 63 68 61 6e 6e 65 6c | 20 73 65 70 61 72 61 74 |.channel| separat|
|00002b50| 65 6c 79 2e 0d 0a 5c 65 | 6e 64 7b 64 65 66 6b 65 |ely...\e|nd{defke|
|00002b60| 79 7d 0d 0a 54 68 65 20 | 64 65 66 61 75 6c 74 20 |y}..The |default |
|00002b70| 6d 61 78 69 6d 75 6d 20 | 63 6f 6e 74 72 61 73 74 |maximum |contrast|
|00002b80| 20 76 61 6c 75 65 73 20 | 66 6f 72 20 74 68 65 20 | values |for the |
|00002b90| 72 65 64 2c 20 67 72 65 | 65 6e 2c 20 61 6e 64 20 |red, gre|en, and |
|00002ba0| 62 6c 75 65 0d 0a 63 68 | 61 6e 6e 65 6c 73 20 61 |blue..ch|annels a|
|00002bb0| 72 65 20 30 2e 32 35 2c | 20 30 2e 32 2c 20 61 6e |re 0.25,| 0.2, an|
|00002bc0| 64 20 30 2e 34 2c 20 72 | 65 73 70 65 63 74 69 76 |d 0.4, r|espectiv|
|00002bd0| 65 6c 79 2e 0d 0a 0d 0a | 5c 62 65 67 69 6e 7b 64 |ely.....|\begin{d|
|00002be0| 65 66 6b 65 79 7d 7b 73 | 61 6d 70 6c 65 7d 7b 7b |efkey}{s|ample}{{|
|00002bf0| 5c 65 6d 20 6e 7d 20 5b | 7b 5c 74 74 20 6e 6f 6a |\em n} [|{\tt noj|
|00002c00| 69 74 74 65 72 7d 5d 7d | 0d 0a 09 55 73 65 20 24 |itter}]}|...Use $|
|00002c10| 6e 5e 7b 32 7d 20 24 20 | 73 61 6d 70 6c 65 73 20 |n^{2} $ |samples |
|00002c20| 77 68 65 6e 20 70 65 72 | 66 6f 72 6d 69 6e 67 20 |when per|forming |
|00002c30| 6a 69 74 74 65 72 65 64 | 0d 0a 09 73 61 6d 70 6c |jittered|...sampl|
|00002c40| 69 6e 67 2e 20 20 54 68 | 65 20 6d 61 78 69 6d 75 |ing. Th|e maximu|
|00002c50| 6d 20 6c 65 67 61 6c 20 | 76 61 6c 75 65 20 69 73 |m legal |value is|
|00002c60| 20 35 2e 0d 0a 09 49 66 | 20 7b 5c 74 74 20 6e 6f | 5....If| {\tt no|
|00002c70| 6a 69 74 74 65 72 7d 20 | 69 73 20 73 70 65 63 69 |jitter} |is speci|
|00002c80| 66 69 65 64 2c 20 73 61 | 6d 70 6c 65 20 6c 6f 63 |fied, sa|mple loc|
|00002c90| 61 74 69 6f 6e 73 0d 0a | 09 61 6e 64 20 74 69 6d |ations..|.and tim|
|00002ca0| 65 73 20 77 69 6c 6c 20 | 6e 6f 74 20 62 65 20 6a |es will |not be j|
|00002cb0| 69 74 74 65 72 65 64 2e | 0d 0a 5c 65 6e 64 7b 64 |ittered.|..\end{d|
|00002cc0| 65 66 6b 65 79 7d 0d 0a | 42 79 20 64 65 66 61 75 |efkey}..|By defau|
|00002cd0| 6c 74 2c 20 24 33 5e 7b | 32 7d 24 20 6a 69 74 74 |lt, $3^{|2}$ jitt|
|00002ce0| 65 72 65 64 20 73 61 6d | 70 6c 65 73 20 61 72 65 |ered sam|ples are|
|00002cf0| 20 74 61 6b 65 6e 2e 0d | 0a 0d 0a 41 20 67 69 76 | taken..|...A giv|
|00002d00| 65 6e 20 73 65 74 20 6f | 66 20 73 61 6d 70 6c 65 |en set o|f sample|
|00002d10| 20 76 61 6c 75 65 73 20 | 6d 75 73 74 20 62 65 20 | values |must be |
|00002d20| 66 69 6c 74 65 72 65 64 | 0d 0a 69 6e 20 6f 72 64 |filtered|..in ord|
|00002d30| 65 72 20 74 6f 0d 0a 61 | 73 73 69 67 6e 20 61 20 |er to..a|ssign a |
|00002d40| 63 6f 6c 6f 72 20 74 6f | 20 61 20 70 69 78 65 6c |color to| a pixel|
|00002d50| 2e 20 20 49 64 65 61 6c | 6c 79 2c 20 77 68 65 6e |. Ideal|ly, when|
|00002d60| 20 70 65 72 66 6f 72 6d | 69 6e 67 20 66 69 6c 74 | perform|ing filt|
|00002d70| 65 72 69 6e 67 0d 0a 66 | 6f 72 20 61 20 73 70 65 |ering..f|or a spe|
|00002d80| 63 69 66 69 63 20 70 69 | 78 65 6c 2c 0d 0a 74 68 |cific pi|xel,..th|
|00002d90| 65 20 66 69 6c 74 65 72 | 20 77 69 6c 6c 20 63 6f |e filter| will co|
|00002da0| 6e 73 69 64 65 72 20 73 | 61 6d 70 6c 65 73 20 66 |nsider s|amples f|
|00002db0| 72 6f 6d 20 6e 65 69 67 | 68 62 6f 72 69 6e 67 20 |rom neig|hboring |
|00002dc0| 72 65 67 69 6f 6e 73 2e | 20 20 49 6e 0d 0a 7b 5c |regions.| In..{\|
|00002dd0| 72 61 79 73 68 61 64 65 | 7d 2c 20 74 68 65 20 66 |rayshade|}, the f|
|00002de0| 69 6c 74 65 72 69 6e 67 | 20 61 70 70 6c 69 65 64 |iltering| applied|
|00002df0| 20 74 6f 20 61 20 70 69 | 78 65 6c 20 6d 61 6b 65 | to a pi|xel make|
|00002e00| 73 20 75 73 65 20 6f 66 | 20 73 61 6d 70 6c 65 73 |s use of| samples|
|00002e10| 0d 0a 74 61 6b 65 6e 20 | 66 6f 72 20 74 68 61 74 |..taken |for that|
|00002e20| 20 70 69 78 65 6c 20 61 | 6c 6f 6e 65 2e 20 20 48 | pixel a|lone. H|
|00002e30| 6f 77 65 76 65 72 2c 20 | 6f 6e 65 20 6d 61 79 20 |owever, |one may |
|00002e40| 69 6e 63 72 65 61 73 65 | 20 74 68 65 20 73 69 7a |increase| the siz|
|00002e50| 65 0d 0a 6f 66 20 74 68 | 65 20 66 69 6c 74 65 72 |e..of th|e filter|
|00002e60| 20 74 68 61 74 20 69 73 | 20 61 70 70 6c 69 65 64 | that is| applied|
|00002e70| 20 69 6e 20 6f 72 64 65 | 72 20 74 6f 20 61 70 70 | in orde|r to app|
|00002e80| 72 6f 78 69 6d 61 74 65 | 20 74 68 65 20 72 65 73 |roximate| the res|
|00002e90| 75 6c 74 73 0d 0a 61 20 | 6d 6f 72 65 20 72 6f 62 |ults..a |more rob|
|00002ea0| 75 73 74 20 66 69 6c 74 | 65 72 69 6e 67 20 73 63 |ust filt|ering sc|
|00002eb0| 68 65 6d 65 2e 0d 0a 0d | 0a 5c 62 65 67 69 6e 7b |heme....|.\begin{|
|00002ec0| 64 65 66 6b 65 79 7d 7b | 66 69 6c 74 65 72 7d 7b |defkey}{|filter}{|
|00002ed0| 7b 5c 65 6d 20 74 79 70 | 65 7d 20 5b 7b 5c 65 6d |{\em typ|e} [{\em|
|00002ee0| 20 77 69 64 74 68 7d 5d | 7d 0d 0a 09 55 73 65 20 | width}]|}...Use |
|00002ef0| 74 68 65 20 69 6e 64 69 | 63 61 74 65 64 20 66 69 |the indi|cated fi|
|00002f00| 6c 74 65 72 20 74 79 70 | 65 20 77 69 74 68 20 74 |lter typ|e with t|
|00002f10| 68 65 20 67 69 76 65 6e | 20 77 69 64 74 68 2c 0d |he given| width,.|
|00002f20| 0a 09 69 6e 20 70 69 78 | 65 6c 73 2e 0d 0a 09 53 |..in pix|els....S|
|00002f30| 75 70 70 6f 72 74 65 64 | 20 66 69 6c 74 65 72 20 |upported| filter |
|00002f40| 74 79 70 65 73 20 61 72 | 65 20 7b 5c 74 74 20 67 |types ar|e {\tt g|
|00002f50| 61 75 73 73 7d 20 28 47 | 61 75 73 73 69 61 6e 29 |auss} (G|aussian)|
|00002f60| 0d 0a 09 61 6e 64 20 7b | 5c 74 74 20 62 6f 78 7d |...and {|\tt box}|
|00002f70| 20 28 74 68 65 20 64 65 | 66 61 75 6c 74 29 2e 0d | (the de|fault)..|
|00002f80| 0a 5c 65 6e 64 7b 64 65 | 66 6b 65 79 7d 0d 0a 54 |.\end{de|fkey}..T|
|00002f90| 68 65 20 64 65 66 61 75 | 6c 74 20 66 69 6c 74 65 |he defau|lt filte|
|00002fa0| 72 20 77 69 64 74 68 20 | 69 73 20 31 2e 30 20 66 |r width |is 1.0 f|
|00002fb0| 6f 72 20 61 20 62 6f 78 | 20 66 69 6c 74 65 72 2c |or a box| filter,|
|00002fc0| 20 31 2e 38 20 66 6f 72 | 20 61 20 47 61 75 73 73 | 1.8 for| a Gauss|
|00002fd0| 69 61 6e 0d 0a 66 69 6c | 74 65 72 2e 20 20 54 68 |ian..fil|ter. Th|
|00002fe0| 65 20 66 69 6c 74 65 72 | 20 61 6e 64 20 70 69 78 |e filter| and pix|
|00002ff0| 65 6c 20 63 65 6e 74 65 | 72 73 20 61 6c 77 61 79 |el cente|rs alway|
|00003000| 73 20 63 6f 69 6e 63 69 | 64 65 2e 0d 0a 57 68 65 |s coinci|de...Whe|
|00003010| 6e 20 73 61 6d 70 6c 69 | 6e 67 20 61 20 70 69 78 |n sampli|ng a pix|
|00003020| 65 6c 2c 20 73 61 6d 70 | 6c 65 73 20 61 72 65 20 |el, samp|les are |
|00003030| 74 61 6b 65 6e 20 6f 76 | 65 72 20 74 68 65 20 61 |taken ov|er the a|
|00003040| 72 65 61 20 6f 66 0d 0a | 74 68 65 20 70 69 78 65 |rea of..|the pixe|
|00003050| 6c 20 66 69 6c 74 65 72 | 2c 20 77 68 69 63 68 20 |l filter|, which |
|00003060| 69 73 20 6e 6f 74 20 6e | 65 63 65 73 73 61 72 69 |is not n|ecessari|
|00003070| 6c 79 20 74 68 65 20 73 | 61 6d 65 20 61 73 20 74 |ly the s|ame as t|
|00003080| 68 65 20 61 72 65 61 0d | 0a 6f 66 20 74 68 65 20 |he area.|.of the |
|00003090| 70 69 78 65 6c 20 69 74 | 73 65 6c 66 2e 0d 0a 0d |pixel it|self....|
|000030a0| 0a 4a 69 74 74 65 72 65 | 64 20 73 61 6d 70 6c 69 |.Jittere|d sampli|
|000030b0| 6e 67 20 69 73 20 75 73 | 65 64 20 69 6e 20 7b 5c |ng is us|ed in {\|
|000030c0| 72 61 79 73 68 61 64 65 | 7d 20 74 6f 20 73 61 6d |rayshade|} to sam|
|000030d0| 70 6c 65 20 65 78 74 65 | 6e 64 65 64 20 6c 69 67 |ple exte|nded lig|
|000030e0| 68 74 0d 0a 73 6f 75 72 | 63 65 73 20 61 73 20 77 |ht..sour|ces as w|
|000030f0| 65 6c 6c 2e 20 20 41 20 | 74 6f 74 61 6c 20 6f 66 |ell. A |total of|
|00003100| 20 24 73 61 6d 70 6c 65 | 73 5e 32 24 20 73 61 6d | $sample|s^2$ sam|
|00003110| 70 6c 65 73 20 61 72 65 | 20 74 61 6b 65 6e 20 6f |ples are| taken o|
|00003120| 66 0d 0a 65 61 63 68 20 | 65 78 74 65 6e 64 65 64 |f..each |extended|
|00003130| 20 6c 69 67 68 74 20 73 | 6f 75 72 63 65 20 69 6e | light s|ource in|
|00003140| 20 6f 72 64 65 72 20 74 | 6f 20 64 65 74 65 72 6d | order t|o determ|
|00003150| 69 6e 65 20 74 68 65 20 | 65 78 74 65 6e 74 20 6f |ine the |extent o|
|00003160| 66 20 73 68 61 64 6f 77 | 69 6e 67 2e 0d 0a 0d 0a |f shadow|ing.....|
|00003170| 5c 73 65 63 74 69 6f 6e | 7b 54 68 65 20 52 61 79 |\section|{The Ray|
|00003180| 20 54 72 65 65 7d 0d 0a | 0d 0a 57 68 65 6e 20 72 | Tree}..|..When r|
|00003190| 61 79 20 74 72 61 63 69 | 6e 67 20 61 20 73 63 65 |ay traci|ng a sce|
|000031a0| 6e 65 2c 20 72 65 66 6c | 65 63 74 65 64 20 6f 72 |ne, refl|ected or|
|000031b0| 20 74 72 61 6e 73 6d 69 | 74 74 65 64 20 72 61 79 | transmi|tted ray|
|000031c0| 73 20 6d 61 79 20 73 74 | 72 69 6b 65 0d 0a 6f 74 |s may st|rike..ot|
|000031d0| 68 65 72 20 72 65 66 6c | 65 63 74 69 76 65 20 6f |her refl|ective o|
|000031e0| 72 20 74 72 61 6e 73 70 | 61 72 65 6e 74 20 6f 62 |r transp|arent ob|
|000031f0| 6a 65 63 74 73 2e 20 20 | 46 75 72 74 68 65 72 20 |jects. |Further |
|00003200| 72 65 66 6c 65 63 74 65 | 64 20 6f 72 0d 0a 74 72 |reflecte|d or..tr|
|00003210| 61 6e 73 6d 69 74 74 65 | 64 20 72 61 79 73 20 77 |ansmitte|d rays w|
|00003220| 69 6c 6c 20 62 65 20 73 | 70 61 77 6e 65 64 2c 20 |ill be s|pawned, |
|00003230| 61 6e 64 20 73 6f 20 6f | 6e 2e 20 20 54 61 6b 65 |and so o|n. Take|
|00003240| 6e 20 74 6f 67 65 74 68 | 65 72 2c 20 73 75 63 68 |n togeth|er, such|
|00003250| 0d 0a 61 20 66 61 6d 69 | 6c 79 20 6f 66 20 72 61 |..a fami|ly of ra|
|00003260| 79 73 20 69 73 20 74 65 | 72 6d 65 64 20 74 68 65 |ys is te|rmed the|
|00003270| 20 7b 5c 65 6d 20 72 61 | 79 20 74 72 65 65 7d 2e | {\em ra|y tree}.|
|00003280| 20 20 43 61 72 65 20 6d | 75 73 74 20 62 65 20 74 | Care m|ust be t|
|00003290| 61 6b 65 6e 0d 0a 74 6f | 20 63 6f 6e 74 72 6f 6c |aken..to| control|
|000032a0| 20 74 68 65 20 64 65 70 | 74 68 20 6f 66 20 74 68 | the dep|th of th|
|000032b0| 69 73 20 74 72 65 65 3a | 20 20 49 66 20 69 74 20 |is tree:| If it |
|000032c0| 69 73 20 61 6c 6c 6f 77 | 65 64 20 74 6f 20 67 72 |is allow|ed to gr|
|000032d0| 6f 77 20 74 6f 6f 20 64 | 65 65 70 6c 79 2c 0d 0a |ow too d|eeply,..|
|000032e0| 6f 6e 65 20 6d 61 79 20 | 73 70 65 6e 64 20 61 20 |one may |spend a |
|000032f0| 67 72 65 61 74 20 64 65 | 61 6c 20 6f 66 20 74 69 |great de|al of ti|
|00003300| 6d 65 20 63 6f 6d 70 75 | 74 69 6e 67 20 72 61 79 |me compu|ting ray|
|00003310| 73 20 74 68 61 74 20 63 | 6f 6e 74 72 69 62 75 74 |s that c|ontribut|
|00003320| 65 20 6c 69 74 74 6c 65 | 0d 0a 74 6f 20 74 68 65 |e little|..to the|
|00003330| 20 66 69 6e 61 6c 20 70 | 69 63 74 75 72 65 3b 20 | final p|icture; |
|00003340| 69 66 20 69 74 20 69 73 | 20 6e 6f 74 20 61 6c 6c |if it is| not all|
|00003350| 6f 77 65 64 20 74 6f 20 | 67 72 6f 77 20 66 61 72 |owed to |grow far|
|00003360| 20 65 6e 6f 75 67 68 2c | 20 74 68 69 73 0d 0a 70 | enough,| this..p|
|00003370| 72 65 6d 61 74 75 72 65 | 20 74 72 65 65 20 70 72 |remature| tree pr|
|00003380| 75 6e 69 6e 67 20 6d 61 | 79 20 62 65 20 65 76 69 |uning ma|y be evi|
|00003390| 64 65 6e 74 20 69 6e 20 | 74 68 65 20 69 6d 61 67 |dent in |the imag|
|000033a0| 65 2e 0d 0a 0d 0a 7b 5c | 52 61 79 73 68 61 64 65 |e.....{\|Rayshade|
|000033b0| 7d 20 70 72 6f 76 69 64 | 65 73 20 74 77 6f 20 63 |} provid|es two c|
|000033c0| 6f 6d 70 6c 65 6d 65 6e | 74 61 72 79 20 6d 65 74 |omplemen|tary met|
|000033d0| 68 6f 64 73 20 66 6f 72 | 20 63 6f 6e 74 72 6f 6c |hods for| control|
|000033e0| 6c 69 6e 67 20 74 68 65 | 20 64 65 70 74 68 0d 0a |ling the| depth..|
|000033f0| 6f 66 20 74 68 65 20 72 | 61 79 20 74 72 65 65 2e |of the r|ay tree.|
|00003400| 20 20 4f 6e 65 20 6d 65 | 74 68 6f 64 20 73 65 74 | One me|thod set|
|00003410| 73 20 61 6e 20 61 62 73 | 6f 6c 75 74 65 20 6d 61 |s an abs|olute ma|
|00003420| 78 69 6d 75 6d 20 66 6f | 72 20 74 68 65 20 74 72 |ximum fo|r the tr|
|00003430| 65 65 2e 20 20 54 68 65 | 0d 0a 6f 74 68 65 72 20 |ee. The|..other |
|00003440| 61 6c 6c 6f 77 73 20 6f | 6e 65 20 74 6f 20 61 64 |allows o|ne to ad|
|00003450| 61 70 74 69 76 65 6c 79 | 20 70 72 75 6e 65 20 61 |aptively| prune a|
|00003460| 20 74 72 65 65 20 61 73 | 20 69 74 20 67 72 6f 77 | tree as| it grow|
|00003470| 73 20 73 6f 20 74 68 61 | 74 20 60 60 75 6e 69 6d |s so tha|t ``unim|
|00003480| 70 6f 72 74 61 6e 74 27 | 27 0d 0a 72 61 79 73 20 |portant'|'..rays |
|00003490| 61 72 65 20 6e 6f 74 20 | 73 70 61 77 6e 65 64 2e |are not |spawned.|
|000034a0| 0d 0a 0d 0a 5c 62 65 67 | 69 6e 7b 64 65 66 6b 65 |....\beg|in{defke|
|000034b0| 79 7d 7b 6d 61 78 64 65 | 70 74 68 7d 7b 7b 5c 65 |y}{maxde|pth}{{\e|
|000034c0| 6d 20 6c 65 76 65 6c 7d | 7d 0d 0a 09 44 6f 20 6e |m level}|}...Do n|
|000034d0| 6f 74 20 73 70 61 77 6e | 20 72 61 79 73 20 64 65 |ot spawn| rays de|
|000034e0| 65 70 65 72 20 74 68 61 | 6e 20 74 68 6f 73 65 20 |eper tha|n those |
|000034f0| 61 74 20 74 68 65 20 67 | 69 76 65 6e 20 7b 5c 65 |at the g|iven {\e|
|00003500| 6d 20 6c 65 76 65 6c 7d | 2e 0d 0a 5c 65 6e 64 7b |m level}|...\end{|
|00003510| 64 65 66 6b 65 79 7d 0d | 0a 52 61 79 73 20 66 72 |defkey}.|.Rays fr|
|00003520| 6f 6d 20 74 68 65 20 65 | 79 65 20 61 72 65 20 6f |om the e|ye are o|
|00003530| 66 20 64 65 70 74 68 20 | 7a 65 72 6f 2e 20 20 54 |f depth |zero. T|
|00003540| 68 65 20 64 65 66 61 75 | 6c 74 20 76 61 6c 75 65 |he defau|lt value|
|00003550| 20 66 6f 72 0d 0a 7b 5c | 65 6d 20 6c 65 76 65 6c | for..{\|em level|
|00003560| 7d 20 69 73 20 31 35 2e | 0d 0a 54 68 69 73 20 64 |} is 15.|..This d|
|00003570| 65 70 74 68 20 6d 61 79 | 20 61 6c 73 6f 20 62 65 |epth may| also be|
|00003580| 20 73 65 74 20 66 72 6f | 6d 20 74 68 65 20 63 6f | set fro|m the co|
|00003590| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 74 68 72 6f 75 |mmand li|ne throu|
|000035a0| 67 68 20 74 68 65 20 7b | 5c 74 74 20 2d 44 7d 20 |gh the {|\tt -D} |
|000035b0| 6f 70 74 69 6f 6e 2e 0d | 0a 0d 0a 5c 62 65 67 69 |option..|...\begi|
|000035c0| 6e 7b 64 65 66 6b 65 79 | 7d 7b 63 75 74 6f 66 66 |n{defkey|}{cutoff|
|000035d0| 7d 7b 7b 5c 65 6d 20 74 | 68 72 65 73 68 6f 6c 64 |}{{\em t|hreshold|
|000035e0| 7d 7d 0d 0a 09 44 6f 20 | 6e 6f 74 20 73 70 61 77 |}}...Do |not spaw|
|000035f0| 6e 20 72 61 79 73 20 77 | 68 6f 73 65 20 63 6f 6e |n rays w|hose con|
|00003600| 74 72 69 62 75 74 69 6f | 6e 20 74 6f 20 74 68 65 |tributio|n to the|
|00003610| 20 66 69 6e 61 6c 20 63 | 6f 6c 6f 72 20 6f 66 0d | final c|olor of.|
|00003620| 0a 09 74 68 65 20 65 79 | 65 20 72 61 79 20 69 73 |..the ey|e ray is|
|00003630| 20 6c 65 73 73 20 74 68 | 61 6e 20 7b 5c 65 6d 20 | less th|an {\em |
|00003640| 74 68 72 65 73 68 6f 6c | 64 7d 20 66 6f 72 20 65 |threshol|d} for e|
|00003650| 61 63 68 20 63 6f 6c 6f | 72 20 63 68 61 6e 6e 65 |ach colo|r channe|
|00003660| 6c 2e 0d 0a 09 54 68 72 | 65 73 68 6f 6c 64 20 6d |l....Thr|eshold m|
|00003670| 61 79 20 62 65 20 67 69 | 76 65 6e 20 61 73 20 61 |ay be gi|ven as a|
|00003680| 20 73 69 6e 67 6c 65 20 | 66 6c 6f 61 74 69 6e 67 | single |floating|
|00003690| 2d 70 6f 69 6e 74 20 76 | 61 6c 75 65 2c 0d 0a 09 |-point v|alue,...|
|000036a0| 6f 72 20 61 73 20 61 20 | 72 65 64 2d 67 72 65 65 |or as a |red-gree|
|000036b0| 6e 2d 62 6c 75 65 20 74 | 72 69 70 6c 65 2e 0d 0a |n-blue t|riple...|
|000036c0| 5c 65 6e 64 7b 64 65 66 | 6b 65 79 7d 0d 0a 54 68 |\end{def|key}..Th|
|000036d0| 65 20 64 65 66 61 75 6c | 74 20 76 61 6c 75 65 20 |e defaul|t value |
|000036e0| 69 73 20 30 2e 30 30 32 | 2e 20 20 54 68 69 73 20 |is 0.002|. This |
|000036f0| 74 68 72 65 73 68 6f 6c | 64 20 6d 61 79 20 61 6c |threshol|d may al|
|00003700| 73 6f 20 62 65 20 73 65 | 74 20 66 72 6f 6d 0d 0a |so be se|t from..|
|00003710| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 6c 69 6e 65 |the comm|and line|
|00003720| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 7b 5c 74 | through| the {\t|
|00003730| 74 20 2d 54 7d 20 6f 70 | 74 69 6f 6e 2e 0d 0a |t -T} op|tion... |
+--------+-------------------------+-------------------------+--------+--------+